Class ImmutableSortedSetSerializer


  • public class ImmutableSortedSetSerializer
    extends com.esotericsoftware.kryo.Serializer<com.google.common.collect.ImmutableSortedSet<Object>>
    A kryo Serializer for guava-libraries ImmutableSortedSet.
    • Constructor Detail

      • ImmutableSortedSetSerializer

        public ImmutableSortedSetSerializer()
    • Method Detail

      • write

        public void write​(com.esotericsoftware.kryo.Kryo kryo,
                          com.esotericsoftware.kryo.io.Output output,
                          com.google.common.collect.ImmutableSortedSet<Object> object)
        Specified by:
        write in class com.esotericsoftware.kryo.Serializer<com.google.common.collect.ImmutableSortedSet<Object>>
      • read

        public com.google.common.collect.ImmutableSortedSet<Object> read​(com.esotericsoftware.kryo.Kryo kryo,
                                                                         com.esotericsoftware.kryo.io.Input input,
                                                                         Class<? extends com.google.common.collect.ImmutableSortedSet<Object>> type)
        Specified by:
        read in class com.esotericsoftware.kryo.Serializer<com.google.common.collect.ImmutableSortedSet<Object>>
      • registerSerializers

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