Package krati.io.serializer

Examples of krati.io.serializer.FloatSerializer


*/
public class TestFloatSerializer extends AbstractTestNumberSerializer<Float> {

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


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

    public void testCustomApi() {
        FloatSerializer serializer = createSerializer();
       
        float val = 0;
        assertEquals(val, serializer.floatValue(serializer.floatBytes(val)));
        val = minValue();
        assertEquals(val, serializer.floatValue(serializer.floatBytes(val)));
        val = maxValue();
        assertEquals(val, serializer.floatValue(serializer.floatBytes(val)));
        val = anyValue();
        assertEquals(val, serializer.floatValue(serializer.floatBytes(val)));
    }
View Full Code Here

*/
public class TestFloatSerializer2 extends TestFloatSerializer {
   
    @Override
    protected FloatSerializer createSerializer() {
        return new FloatSerializer(ByteOrder.LITTLE_ENDIAN);
    }
View Full Code Here

TOP

Related Classes of krati.io.serializer.FloatSerializer

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.