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
Serializer for
TreeMap and any subclass.- Author:
- Tumi invalid input: '<'serverperformance@gmail.com> (enhacements)
-
Nested Class Summary
Nested classes/interfaces inherited from class MapSerializer
MapSerializer.BindMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MapUsed byMapSerializer.read(Kryo, Input, Class)to create the new object.protected MapcreateCopy(Kryo kryo, Map original) voidWrites the bytes for the object to the output.Methods inherited from class MapSerializer
copy, read, setGenerics, setKeyClass, setKeysCanBeNull, setValueClass, setValuesCanBeNullMethods inherited from class Serializer
getAcceptsNull, isImmutable, setAcceptsNull, setImmutable
-
Constructor Details
-
TreeMapSerializer
public TreeMapSerializer()
-
-
Method Details
-
write
Description copied from class:SerializerWrites the bytes for the object to the output.This method should not be called directly, instead this serializer can be passed to
Kryowrite methods that accept a serialier.- Overrides:
writein classMapSerializer- Parameters:
map- May be null ifSerializer.getAcceptsNull()is true.
-
create
Description copied from class:MapSerializerUsed 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:
createin classMapSerializer
-
createCopy
- Overrides:
createCopyin classMapSerializer
-