public static class DefaultSerializers.TreeMapSerializer extends MapSerializer
| Constructor and Description |
|---|
DefaultSerializers.TreeMapSerializer() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map |
create(Kryo kryo,
Input input,
java.lang.Class<java.util.Map> type)
Used by
MapSerializer.read(Kryo, Input, Class) to create the new object. |
protected java.util.Map |
createCopy(Kryo kryo,
java.util.Map original) |
void |
write(Kryo kryo,
Output output,
java.util.Map map)
Writes the bytes for the object to the output.
|
copy, read, setGenerics, setKeyClass, setKeysCanBeNull, setValueClass, setValuesCanBeNullgetAcceptsNull, isImmutable, setAcceptsNull, setImmutablepublic DefaultSerializers.TreeMapSerializer()
public void write(Kryo kryo, Output output, java.util.Map map)
Serializer
This method should not be called directly, instead this serializer can be passed to Kryo write methods that accept a
serialier.
write in class MapSerializermap - May be null if Serializer.getAcceptsNull() is true.protected java.util.Map create(Kryo kryo, Input input, java.lang.Class<java.util.Map> type)
MapSerializerMapSerializer.read(Kryo, Input, Class) to create the new object. This can be overridden to customize object creation, eg
to call a constructor with arguments. The default implementation uses Kryo.newInstance(Class).create in class MapSerializerprotected java.util.Map createCopy(Kryo kryo, java.util.Map original)
createCopy in class MapSerializer