public class SynchronizedCollectionsSerializer extends com.esotericsoftware.kryo.Serializer<Object>
Constructor and Description |
---|
SynchronizedCollectionsSerializer() |
Modifier and Type | Method and Description |
---|---|
Object |
copy(com.esotericsoftware.kryo.Kryo kryo,
Object original) |
Object |
read(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Input input,
Class<Object> clazz) |
static void |
registerSerializers(com.esotericsoftware.kryo.Kryo kryo)
Creates a new
SynchronizedCollectionsSerializer and registers its serializer
for the several synchronized Collections that can be created via Collections ,
including Map s. |
void |
write(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Output output,
Object object) |
public Object read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<Object> clazz)
read
in class com.esotericsoftware.kryo.Serializer<Object>
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, Object object)
write
in class com.esotericsoftware.kryo.Serializer<Object>
public Object copy(com.esotericsoftware.kryo.Kryo kryo, Object original)
copy
in class com.esotericsoftware.kryo.Serializer<Object>
public static void registerSerializers(com.esotericsoftware.kryo.Kryo kryo)
SynchronizedCollectionsSerializer
and registers its serializer
for the several synchronized Collections that can be created via Collections
,
including Map
s.kryo
- the Kryo
instance to set the serializer on.Collections.synchronizedCollection(Collection)
,
Collections.synchronizedList(List)
,
Collections.synchronizedSet(Set)
,
Collections.synchronizedSortedSet(SortedSet)
,
Collections.synchronizedMap(Map)
,
Collections.synchronizedSortedMap(SortedMap)
Copyright © 2010–2018. All rights reserved.