public static class SubListSerializers.JavaUtilSubListSerializer extends com.esotericsoftware.kryo.Serializer<List<?>>
AbstractList.subList(int, int)
, e.g. LinkedList.
In oracle jdk such sublists are represented by java.util.SubList
.Constructor and Description |
---|
JavaUtilSubListSerializer() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canSerialize(Class<?> type)
Can be used to determine, if the given type can be handled by this serializer.
|
List<?> |
copy(com.esotericsoftware.kryo.Kryo kryo,
List<?> obj) |
List<?> |
read(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Input input,
Class<List<?>> clazz) |
void |
write(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Output output,
List<?> obj) |
public static boolean canSerialize(Class<?> type)
type
- the class to check.true
if the given class can be serialized/deserialized by this serializer.public List<?> read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<List<?>> clazz)
read
in class com.esotericsoftware.kryo.Serializer<List<?>>
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, List<?> obj)
write
in class com.esotericsoftware.kryo.Serializer<List<?>>
Copyright © 2010–2018. All rights reserved.