public class UnmodifiableCollectionsSerializer extends com.esotericsoftware.kryo.Serializer<Object>
Constructor and Description |
---|
UnmodifiableCollectionsSerializer() |
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
UnmodifiableCollectionsSerializer and registers its serializer
for the several unmodifiable 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)
UnmodifiableCollectionsSerializer
and registers its serializer
for the several unmodifiable Collections that can be created via Collections
,
including Map
s.kryo
- the Kryo
instance to set the serializer on.Collections.unmodifiableCollection(Collection)
,
Collections.unmodifiableList(List)
,
Collections.unmodifiableSet(Set)
,
Collections.unmodifiableSortedSet(SortedSet)
,
Collections.unmodifiableMap(Map)
,
Collections.unmodifiableSortedMap(SortedMap)
Copyright © 2010–2018. All rights reserved.