de.javakaffee.kryoserializers
Class CollectionsEmptySetSerializer

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

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

A kryo Serializer for Maps created via Collections.emptySet() or that were just assigned the Collections.EMPTY_SET.

Author:
Martin Grotzke

Constructor Summary
CollectionsEmptySetSerializer()
           
 
Method Summary
 Set<?> read(ByteBuffer buffer)
          
 void write(ByteBuffer buffer, Set<?> 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

CollectionsEmptySetSerializer

public CollectionsEmptySetSerializer()
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<?> emptyList)

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


Copyright © 2010-2011. All Rights Reserved.