public class UnmodifiableSortedSetSerializer
extends com.esotericsoftware.kryo.Serializer<T>
Serializer
for unmodifiable sortable sets created via Collections.unmodifiableSortedSet(SortedSet)
.
Note: This serializer does not support cyclic references, so if one of the objects gets set the list as attribute this might cause an error during deserialization.
Constructor and Description |
---|
UnmodifiableSortedSetSerializer() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.reflect.Field |
getInnerField() |
protected java.util.SortedSet<?> |
newInstance(java.util.SortedSet<?> s) |
T |
read(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Input input,
java.lang.Class<T> type) |
static IKryoRegistrar |
registrar() |
void |
write(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Output output,
T object) |
public static IKryoRegistrar registrar()
protected java.lang.reflect.Field getInnerField() throws java.lang.Exception
java.lang.Exception
protected java.util.SortedSet<?> newInstance(java.util.SortedSet<?> s)
public T read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, java.lang.Class<T> type)
read
in class com.esotericsoftware.kryo.Serializer<T>
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, T object)
write
in class com.esotericsoftware.kryo.Serializer<T>