Examples of ShortSerializer


Examples of com.esotericsoftware.kryo.serializers.DefaultSerializers.ShortSerializer

    register(String.class, new StringSerializer());
    register(float.class, new FloatSerializer());
    register(boolean.class, new BooleanSerializer());
    register(byte.class, new ByteSerializer());
    register(char.class, new CharSerializer());
    register(short.class, new ShortSerializer());
    register(long.class, new LongSerializer());
    register(double.class, new DoubleSerializer());
  }
View Full Code Here

Examples of com.esotericsoftware.kryo.serializers.DefaultSerializers.ShortSerializer

    register(String.class, new StringSerializer());
    register(float.class, new FloatSerializer());
    register(boolean.class, new BooleanSerializer());
    register(byte.class, new ByteSerializer());
    register(char.class, new CharSerializer());
    register(short.class, new ShortSerializer());
    register(long.class, new LongSerializer());
    register(double.class, new DoubleSerializer());
    register(void.class, new VoidSerializer());
   
    // Lambdas support
View Full Code Here

Examples of com.esotericsoftware.kryo.serializers.DefaultSerializers.ShortSerializer

    register(String.class, new StringSerializer());
    register(float.class, new FloatSerializer());
    register(boolean.class, new BooleanSerializer());
    register(byte.class, new ByteSerializer());
    register(char.class, new CharSerializer());
    register(short.class, new ShortSerializer());
    register(long.class, new LongSerializer());
    register(double.class, new DoubleSerializer());
  }
View Full Code Here

Examples of com.esotericsoftware.kryo.serializers.DefaultSerializers.ShortSerializer

    register(String.class, new StringSerializer());
    register(float.class, new FloatSerializer());
    register(boolean.class, new BooleanSerializer());
    register(byte.class, new ByteSerializer());
    register(char.class, new CharSerializer());
    register(short.class, new ShortSerializer());
    register(long.class, new LongSerializer());
    register(double.class, new DoubleSerializer());
  }
View Full Code Here

Examples of com.hazelcast.nio.serialization.ConstantSerializers.ShortSerializer

        registerConstant(DataSerializable.class, dataSerializerAdapter);
        registerConstant(Portable.class, portableSerializerAdapter);
        registerConstant(Byte.class, new ByteSerializer());
        registerConstant(Boolean.class, new BooleanSerializer());
        registerConstant(Character.class, new CharSerializer());
        registerConstant(Short.class, new ShortSerializer());
        registerConstant(Integer.class, new IntegerSerializer());
        registerConstant(Long.class, new LongSerializer());
        registerConstant(Float.class, new FloatSerializer());
        registerConstant(Double.class, new DoubleSerializer());
        registerConstant(byte[].class, new TheByteArraySerializer());
View Full Code Here

Examples of com.hazelcast.nio.serialization.ConstantSerializers.ShortSerializer

        registerConstant(DataSerializable.class, dataSerializerAdapter);
        registerConstant(Portable.class, portableSerializerAdapter);
        registerConstant(Byte.class, new ByteSerializer());
        registerConstant(Boolean.class, new BooleanSerializer());
        registerConstant(Character.class, new CharSerializer());
        registerConstant(Short.class, new ShortSerializer());
        registerConstant(Integer.class, new IntegerSerializer());
        registerConstant(Long.class, new LongSerializer());
        registerConstant(Float.class, new FloatSerializer());
        registerConstant(Double.class, new DoubleSerializer());
        registerConstant(byte[].class, new TheByteArraySerializer());
View Full Code Here

Examples of eu.stratosphere.api.common.typeutils.base.ShortSerializer

    return new ShortComparator(ascending);
  }

  @Override
  protected TypeSerializer<Short> createSerializer() {
    return new ShortSerializer();
  }
View Full Code Here

Examples of krati.io.serializer.ShortSerializer

*/
public class TestShortSerializer2 extends TestShortSerializer {
   
    @Override
    protected ShortSerializer createSerializer() {
        return new ShortSerializer(ByteOrder.LITTLE_ENDIAN);
    }
View Full Code Here

Examples of krati.io.serializer.ShortSerializer

*/
public class TestShortSerializer extends AbstractTestNumberSerializer<Short> {

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

Examples of krati.io.serializer.ShortSerializer

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

    public void testCustomApi() {
        ShortSerializer serializer = createSerializer();
       
        short val = 0;
        assertEquals(val, serializer.shortValue(serializer.shortBytes(val)));
        val = minValue();
        assertEquals(val, serializer.shortValue(serializer.shortBytes(val)));
        val = maxValue();
        assertEquals(val, serializer.shortValue(serializer.shortBytes(val)));
        val = anyValue();
        assertEquals(val, serializer.shortValue(serializer.shortBytes(val)));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.