de.javakaffee.kryoserializers
Class CollectionsSingletonMapSerializer

java.lang.Object
  extended by com.esotericsoftware.kryo.Serializer
      extended by com.esotericsoftware.kryo.serialize.SimpleSerializer<Map<?,?>>
          extended by de.javakaffee.kryoserializers.CollectionsSingletonMapSerializer

public class CollectionsSingletonMapSerializer
extends com.esotericsoftware.kryo.serialize.SimpleSerializer<Map<?,?>>

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

Author:
Martin Grotzke

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

CollectionsSingletonMapSerializer

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

read

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

write

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


Copyright © 2010-2011. All Rights Reserved.