public Kryo () {
Serializer serializer;
// Primitives.
register(boolean.class, new BooleanSerializer());
register(byte.class, new ByteSerializer());
register(char.class, new CharSerializer());
register(short.class, new ShortSerializer());
register(int.class, new IntSerializer());
register(long.class, new LongSerializer());
register(float.class, new FloatSerializer());
register(double.class, new DoubleSerializer());
// Primitive wrappers.
register(Boolean.class, new BooleanSerializer());
register(Byte.class, new ByteSerializer());
register(Character.class, new CharSerializer());
register(Short.class, new ShortSerializer());
register(Integer.class, new IntSerializer());
register(Long.class, new LongSerializer());
register(Float.class, new FloatSerializer());