java.lang.Object
com.esotericsoftware.kryo.kryo5.Serializer<com.google.common.collect.ImmutableList<Object>>
com.xebialabs.xlrelease.actors.kryoserializers.javakaffee.guava.ImmutableListSerializer

public class ImmutableListSerializer extends com.esotericsoftware.kryo.kryo5.Serializer<com.google.common.collect.ImmutableList<Object>>
A kryo Serializer for guava-libraries ImmutableList.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.common.collect.ImmutableList<Object>
    read(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Input input, Class<? extends com.google.common.collect.ImmutableList<Object>> type)
     
    static void
    registerSerializers(com.esotericsoftware.kryo.kryo5.Kryo kryo)
    Creates a new ImmutableListSerializer and registers its serializer for the several ImmutableList related classes.
    void
    write(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Output output, com.google.common.collect.ImmutableList<Object> object)
     

    Methods inherited from class com.esotericsoftware.kryo.kryo5.Serializer

    copy, getAcceptsNull, isImmutable, setAcceptsNull, setImmutable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ImmutableListSerializer

      public ImmutableListSerializer()
  • Method Details

    • write

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

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

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