public static class DefaultSerializers.TreeMapSerializer extends MapSerializer
TreeMap and any subclass.MapSerializer.BindMap| Constructor and Description |
|---|
TreeMapSerializer() |
| Modifier and Type | Method and Description |
|---|---|
protected Map |
create(Kryo kryo,
Input input,
Class<Map> type)
Used by
MapSerializer.read(Kryo, Input, Class) to create the new object. |
protected Map |
createCopy(Kryo kryo,
Map original) |
void |
write(Kryo kryo,
Output output,
Map map)
Writes the bytes for the object to the output.
|
copy, read, setGenerics, setKeyClass, setKeysCanBeNull, setValueClass, setValuesCanBeNullgetAcceptsNull, isImmutable, setAcceptsNull, setImmutablepublic void write(Kryo kryo, Output output, 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 Map create(Kryo kryo, Input input, Class<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 Map createCopy(Kryo kryo, Map original)
createCopy in class MapSerializerCopyright © 2023. All rights reserved.