Package krati.io.serializer

Examples of krati.io.serializer.DoubleSerializer


*/
public class TestDoubleSerializer extends AbstractTestNumberSerializer<Double> {

    @Override
    protected DoubleSerializer createSerializer() {
        return new DoubleSerializer();
    }
View Full Code Here


    protected Double maxValue() {
        return Double.MAX_VALUE;
    }

    public void testCustomApi() {
        DoubleSerializer serializer = createSerializer();
       
        double val = 0;
        assertEquals(val, serializer.doubleValue(serializer.doubleBytes(val)));
        val = minValue();
        assertEquals(val, serializer.doubleValue(serializer.doubleBytes(val)));
        val = maxValue();
        assertEquals(val, serializer.doubleValue(serializer.doubleBytes(val)));
        val = anyValue();
        assertEquals(val, serializer.doubleValue(serializer.doubleBytes(val)));
    }
View Full Code Here

*/
public class TestDoubleSerializer2 extends TestDoubleSerializer {
   
    @Override
    protected DoubleSerializer createSerializer() {
        return new DoubleSerializer(ByteOrder.LITTLE_ENDIAN);
    }
View Full Code Here

TOP

Related Classes of krati.io.serializer.DoubleSerializer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.