public class SubListSerializer
extends com.esotericsoftware.kryo.Serializer
Serializer for lists created via List.subList(int, int).| Constructor and Description |
|---|
SubListSerializer(com.esotericsoftware.kryo.Kryo kryo,
Class<? extends List<?>> type) |
| 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.
|
<T> T |
readObjectData(ByteBuffer buffer,
Class<T> clazz) |
void |
writeObjectData(ByteBuffer buffer,
Object 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 <T> T readObjectData(ByteBuffer buffer, Class<T> clazz)
readObjectData in class com.esotericsoftware.kryo.Serializerpublic void writeObjectData(ByteBuffer buffer, Object obj)
writeObjectData in class com.esotericsoftware.kryo.SerializerCopyright © 2010-2012. All Rights Reserved.