Class SetSerializer


  • public class SetSerializer
    extends com.esotericsoftware.kryo.Serializer<com.github.andrewoma.dexx.collection.Set<Object>>
    A kryo Serializer for dexx Set
    • Constructor Summary

      Constructors 
      Constructor Description
      SetSerializer()  
    • Method Summary

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

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

      • SetSerializer

        public SetSerializer()
    • Method Detail

      • write

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

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

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