Class DefaultSerializers.ConcurrentSkipListMapSerializer
- java.lang.Object
-
- com.esotericsoftware.kryo.Serializer<T>
-
- com.esotericsoftware.kryo.serializers.MapSerializer<ConcurrentSkipListMap>
-
- com.esotericsoftware.kryo.serializers.DefaultSerializers.ConcurrentSkipListMapSerializer
-
- Enclosing class:
- DefaultSerializers
public static class DefaultSerializers.ConcurrentSkipListMapSerializer extends MapSerializer<ConcurrentSkipListMap>
Serializer forConcurrentSkipListMapand any subclass.- Author:
- Mr14huashao
(enhacements)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.esotericsoftware.kryo.serializers.MapSerializer
MapSerializer.BindMap
-
-
Constructor Summary
Constructors Constructor Description ConcurrentSkipListMapSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ConcurrentSkipListMapcreate(Kryo kryo, Input input, Class<? extends ConcurrentSkipListMap> type, int size)Used byMapSerializer.read(Kryo, Input, Class)to create the new object.protected ConcurrentSkipListMapcreateCopy(Kryo kryo, ConcurrentSkipListMap original)protected voidwriteHeader(Kryo kryo, Output output, ConcurrentSkipListMap concurrentSkipListMap)Can be overidden to write data needed forMapSerializer.create(Kryo, Input, Class, int).-
Methods inherited from class com.esotericsoftware.kryo.serializers.MapSerializer
copy, getKeyClass, getKeySerializer, getValueClass, getValueSerializer, read, setKeyClass, setKeyClass, setKeysCanBeNull, setKeySerializer, setValueClass, setValueClass, setValuesCanBeNull, setValueSerializer, write
-
Methods inherited from class com.esotericsoftware.kryo.Serializer
getAcceptsNull, isImmutable, setAcceptsNull, setImmutable
-
-
-
-
Method Detail
-
writeHeader
protected void writeHeader(Kryo kryo, Output output, ConcurrentSkipListMap concurrentSkipListMap)
Description copied from class:MapSerializerCan be overidden to write data needed forMapSerializer.create(Kryo, Input, Class, int). The default implementation does nothing.- Overrides:
writeHeaderin classMapSerializer<ConcurrentSkipListMap>
-
create
protected ConcurrentSkipListMap create(Kryo kryo, Input input, Class<? extends ConcurrentSkipListMap> type, int size)
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)with a special case for HashMap.- Overrides:
createin classMapSerializer<ConcurrentSkipListMap>
-
createCopy
protected ConcurrentSkipListMap createCopy(Kryo kryo, ConcurrentSkipListMap original)
- Overrides:
createCopyin classMapSerializer<ConcurrentSkipListMap>
-
-