public static class DefaultSerializers.TreeSetSerializer extends CollectionSerializer
TreeMap and any subclass.CollectionSerializer.BindCollection| Constructor and Description |
|---|
TreeSetSerializer() |
| Modifier and Type | Method and Description |
|---|---|
protected TreeSet |
create(Kryo kryo,
Input input,
Class<Collection> type)
Used by
CollectionSerializer.read(Kryo, Input, Class) to create the new object. |
protected TreeSet |
createCopy(Kryo kryo,
Collection original)
Used by
CollectionSerializer.copy(Kryo, Collection) to create the new object. |
void |
write(Kryo kryo,
Output output,
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, 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 TreeSet create(Kryo kryo, Input input, Class<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 TreeSet createCopy(Kryo kryo, 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 CollectionSerializerCopyright © 2023. All rights reserved.