Package com.twitter.chill.java
Class UnmodifiableSortedMapSerializer
java.lang.Object
com.esotericsoftware.kryo.kryo5.Serializer<T>
com.twitter.chill.java.UnmodifiableSortedMapSerializer
public class UnmodifiableSortedMapSerializer
extends com.esotericsoftware.kryo.kryo5.Serializer<T>
A kryo
Serializer for unmodifiable sortable maps created via Collections.unmodifiableSortedMap(SortedMap).
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Fieldprotected SortedMap<?,?> newInstance(SortedMap<?, ?> m) SortedMap<?,?> read(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Input input, Class<? extends SortedMap<?, ?>> type) static IKryoRegistrarvoidwrite(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Output output, SortedMap<?, ?> object) Methods inherited from class com.esotericsoftware.kryo.kryo5.Serializer
copy, getAcceptsNull, isImmutable, setAcceptsNull, setImmutable
-
Constructor Details
-
UnmodifiableSortedMapSerializer
public UnmodifiableSortedMapSerializer()
-
-
Method Details
-
registrar
-
getInnerField
- Throws:
Exception
-
newInstance
-
read
public SortedMap<?,?> read(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Input input, Class<? extends SortedMap<?, ?>> type) - Specified by:
readin classcom.esotericsoftware.kryo.kryo5.Serializer<T>
-
write
public void write(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Output output, SortedMap<?, ?> object) - Specified by:
writein classcom.esotericsoftware.kryo.kryo5.Serializer<T>
-