Class DefaultSerializers.TreeMapSerializer
java.lang.Object
com.esotericsoftware.kryo.Serializer<Map>
com.esotericsoftware.kryo.serializers.MapSerializer
com.esotericsoftware.kryo.serializers.DefaultSerializers.TreeMapSerializer
- Enclosing class:
- DefaultSerializers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Map
Used byMapSerializer.read(Kryo, Input, Class)
to create the new object.protected Map
createCopy
(Kryo kryo, Map original) void
Writes the bytes for the object to the output.Methods inherited from class com.esotericsoftware.kryo.serializers.MapSerializer
copy, read, setGenerics, setKeyClass, setKeysCanBeNull, setValueClass, setValuesCanBeNull
Methods inherited from class com.esotericsoftware.kryo.Serializer
getAcceptsNull, isImmutable, setAcceptsNull, setImmutable
-
Constructor Details
-
TreeMapSerializer
public TreeMapSerializer()
-
-
Method Details
-
write
Description copied from class:Serializer
Writes the bytes for the object to the output.This method should not be called directly, instead this serializer can be passed to
Kryo
write methods that accept a serialier.- Overrides:
write
in classMapSerializer
map
- May be null ifSerializer.getAcceptsNull()
is true.
-
create
Description copied from class:MapSerializer
Used byMapSerializer.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 usesKryo.newInstance(Class)
.- Overrides:
create
in classMapSerializer
-
createCopy
- Overrides:
createCopy
in classMapSerializer
-