Class ListSerializer


  • public class ListSerializer
    extends com.esotericsoftware.kryo.Serializer<com.github.andrewoma.dexx.collection.List>
    A kryo Serializer for dexx List
    • Constructor Summary

      Constructors 
      Constructor Description
      ListSerializer()  
    • Method Summary

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

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

      • ListSerializer

        public ListSerializer()
    • Method Detail

      • write

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

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

        public static void registerSerializers​(com.esotericsoftware.kryo.Kryo kryo)
        Creates a new ImmutableListSerializer and registers its serializer
        Parameters:
        kryo - the Kryo instance to set the serializer on