public static class DefaultSerializers.TreeSetSerializer extends CollectionSerializer<java.util.TreeSet>
TreeMap and any subclass.CollectionSerializer.BindCollection| Constructor and Description |
|---|
TreeSetSerializer() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.TreeSet |
create(Kryo kryo,
Input input,
java.lang.Class<? extends java.util.TreeSet> type,
int size)
Used by
CollectionSerializer.read(Kryo, Input, Class) to create the new object. |
protected java.util.TreeSet |
createCopy(Kryo kryo,
java.util.TreeSet original)
Used by
CollectionSerializer.copy(Kryo, Collection) to create the new object. |
protected void |
writeHeader(Kryo kryo,
Output output,
java.util.TreeSet treeSet)
Can be overidden to write data needed for
CollectionSerializer.create(Kryo, Input, Class, int). |
copy, getElementClass, getElementSerializer, read, setElementClass, setElementClass, setElementsCanBeNull, setElementSerializer, writegetAcceptsNull, isImmutable, setAcceptsNull, setImmutableprotected void writeHeader(Kryo kryo, Output output, java.util.TreeSet treeSet)
CollectionSerializerCollectionSerializer.create(Kryo, Input, Class, int). The default implementation does
nothing.writeHeader in class CollectionSerializer<java.util.TreeSet>protected java.util.TreeSet create(Kryo kryo, Input input, java.lang.Class<? extends java.util.TreeSet> type, int size)
CollectionSerializerCollectionSerializer.read(Kryo, Input, Class) to create the new object. This can be overridden to customize object creation (eg
to call a constructor with arguments), optionally reading bytes written in CollectionSerializer.writeHeader(Kryo, Output, Collection).
The default implementation uses Kryo.newInstance(Class) with special cases for ArrayList.create in class CollectionSerializer<java.util.TreeSet>protected java.util.TreeSet createCopy(Kryo kryo, java.util.TreeSet original)
CollectionSerializerCollectionSerializer.copy(Kryo, Collection) to create the new object. This can be overridden to customize object creation, eg
to call a constructor with arguments. The default implementation uses Kryo.newInstance(Class).createCopy in class CollectionSerializer<java.util.TreeSet>Copyright © 2019. All Rights Reserved.