de.javakaffee.kryoserializers
Class CollectionsSingletonSetSerializer

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

public class CollectionsSingletonSetSerializer
extends com.esotericsoftware.kryo.serialize.SimpleSerializer<Set<?>>

A kryo Serializer for Lists created via Collections.singletonList(Object).

Author:
Martin Grotzke

Constructor Summary
CollectionsSingletonSetSerializer(com.esotericsoftware.kryo.Kryo kryo)
           
 
Method Summary
 Set<?> read(ByteBuffer buffer)
           
 void write(ByteBuffer buffer, Set<?> set)
           
 
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

CollectionsSingletonSetSerializer

public CollectionsSingletonSetSerializer(com.esotericsoftware.kryo.Kryo kryo)
Method Detail

read

public Set<?> read(ByteBuffer buffer)
Specified by:
read in class com.esotericsoftware.kryo.serialize.SimpleSerializer<Set<?>>

write

public void write(ByteBuffer buffer,
                  Set<?> set)
Specified by:
write in class com.esotericsoftware.kryo.serialize.SimpleSerializer<Set<?>>


Copyright © 2010-2011. All Rights Reserved.