Class MapSerializer


  • public class MapSerializer
    extends com.esotericsoftware.kryo.Serializer<com.github.andrewoma.dexx.collection.Map<Object,​? extends Object>>
    A kryo Serializer for dexx Map
    • Constructor Summary

      Constructors 
      Constructor Description
      MapSerializer()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.github.andrewoma.dexx.collection.Map<Object,​Object> read​(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends com.github.andrewoma.dexx.collection.Map<Object,​? extends Object>> type)  
      static void registerSerializers​(com.esotericsoftware.kryo.Kryo kryo)
      Creates a new ImmutableMapSerializer and registers its serializer for the several ImmutableMap related classes.
      void write​(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, com.github.andrewoma.dexx.collection.Map<Object,​? extends Object> immutableMap)  
      • Methods inherited from class com.esotericsoftware.kryo.Serializer

        copy, getAcceptsNull, isImmutable, setAcceptsNull, setImmutable
    • Constructor Detail

      • MapSerializer

        public MapSerializer()
    • Method Detail

      • write

        public void write​(com.esotericsoftware.kryo.Kryo kryo,
                          com.esotericsoftware.kryo.io.Output output,
                          com.github.andrewoma.dexx.collection.Map<Object,​? extends Object> immutableMap)
        Specified by:
        write in class com.esotericsoftware.kryo.Serializer<com.github.andrewoma.dexx.collection.Map<Object,​? extends Object>>
      • read

        public com.github.andrewoma.dexx.collection.Map<Object,​Object> read​(com.esotericsoftware.kryo.Kryo kryo,
                                                                                  com.esotericsoftware.kryo.io.Input input,
                                                                                  Class<? extends com.github.andrewoma.dexx.collection.Map<Object,​? extends Object>> type)
        Specified by:
        read in class com.esotericsoftware.kryo.Serializer<com.github.andrewoma.dexx.collection.Map<Object,​? extends Object>>
      • registerSerializers

        public static void registerSerializers​(com.esotericsoftware.kryo.Kryo kryo)
        Creates a new ImmutableMapSerializer and registers its serializer for the several ImmutableMap related classes.
        Parameters:
        kryo - the Kryo instance to set the serializer on