de.javakaffee.kryoserializers
Class CollectionsEmptyListSerializer

java.lang.Object
  extended by com.esotericsoftware.kryo.Serializer
      extended by com.esotericsoftware.kryo.serialize.SimpleSerializer<List<?>>
          extended by de.javakaffee.kryoserializers.CollectionsEmptyListSerializer

public class CollectionsEmptyListSerializer
extends com.esotericsoftware.kryo.serialize.SimpleSerializer<List<?>>

A kryo Serializer for Lists created via Collections.emptyList() or that were just assigned the Collections.EMPTY_LIST.

Author:
Martin Grotzke

Constructor Summary
CollectionsEmptyListSerializer()
           
 
Method Summary
 List<?> read(ByteBuffer buffer)
          
 void write(ByteBuffer buffer, List<?> emptyList)
          
 
Methods inherited from class com.esotericsoftware.kryo.serialize.SimpleSerializer
readObjectData, writeObjectData
 
Methods inherited from class com.esotericsoftware.kryo.Serializer
isFinal, newInstance, readObject, setCanBeNull, writeObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionsEmptyListSerializer

public CollectionsEmptyListSerializer()
Method Detail

read

public List<?> read(ByteBuffer buffer)

Specified by:
read in class com.esotericsoftware.kryo.serialize.SimpleSerializer<List<?>>

write

public void write(ByteBuffer buffer,
                  List<?> emptyList)

Specified by:
write in class com.esotericsoftware.kryo.serialize.SimpleSerializer<List<?>>


Copyright © 2010-2011. All Rights Reserved.