public static class DefaultSerializers.TreeSetSerializer extends CollectionSerializer
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<java.util.Collection> type)
Used by
CollectionSerializer.read(Kryo, Input, Class) to create the new object. |
protected java.util.TreeSet |
createCopy(Kryo kryo,
java.util.Collection original)
Used by
CollectionSerializer.copy(Kryo, Collection) to create the new object. |
private java.util.TreeSet |
createTreeSet(java.lang.Class<? extends java.util.Collection> type,
java.util.Comparator comparator) |
void |
write(Kryo kryo,
Output output,
java.util.Collection collection)
Writes the bytes for the object to the output.
|
copy, read, setElementClass, setElementsCanBeNull, setGenericsgetAcceptsNull, isImmutable, setAcceptsNull, setImmutablepublic void write(Kryo kryo, Output output, java.util.Collection collection)
Serializer
This method should not be called directly, instead this serializer can be passed to Kryo write methods that accept a
serialier.
write in class CollectionSerializercollection - May be null if Serializer.getAcceptsNull() is true.protected java.util.TreeSet create(Kryo kryo, Input input, java.lang.Class<java.util.Collection> type)
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. The default implementation uses Kryo.newInstance(Class).create in class CollectionSerializerprotected java.util.TreeSet createCopy(Kryo kryo, java.util.Collection 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 CollectionSerializerprivate java.util.TreeSet createTreeSet(java.lang.Class<? extends java.util.Collection> type,
java.util.Comparator comparator)