Package de.javakaffee.kryoserializers
Class SynchronizedCollectionsSerializer
- java.lang.Object
-
- com.esotericsoftware.kryo.Serializer<Object>
-
- de.javakaffee.kryoserializers.SynchronizedCollectionsSerializer
-
public class SynchronizedCollectionsSerializer extends com.esotericsoftware.kryo.Serializer<Object>
- Author:
- Martin Grotzke
-
-
Constructor Summary
Constructors Constructor Description SynchronizedCollectionsSerializer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectcopy(com.esotericsoftware.kryo.Kryo kryo, Object original)Objectread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends Object> clazz)static voidregisterSerializers(com.esotericsoftware.kryo.Kryo kryo)Creates a newSynchronizedCollectionsSerializerand registers its serializer for the several synchronized Collections that can be created viaCollections, includingMaps.voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, Object object)
-
-
-
Method Detail
-
read
public Object read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends Object> clazz)
- Specified by:
readin classcom.esotericsoftware.kryo.Serializer<Object>
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, Object object)- Specified by:
writein classcom.esotericsoftware.kryo.Serializer<Object>
-
copy
public Object copy(com.esotericsoftware.kryo.Kryo kryo, Object original)
- Overrides:
copyin classcom.esotericsoftware.kryo.Serializer<Object>
-
registerSerializers
public static void registerSerializers(com.esotericsoftware.kryo.Kryo kryo)
Creates a newSynchronizedCollectionsSerializerand registers its serializer for the several synchronized Collections that can be created viaCollections, includingMaps.- Parameters:
kryo- theKryoinstance to set the serializer on.- See Also:
Collections.synchronizedCollection(Collection),Collections.synchronizedList(List),Collections.synchronizedSet(Set),Collections.synchronizedSortedSet(SortedSet),Collections.synchronizedMap(Map),Collections.synchronizedSortedMap(SortedMap)
-
-