Class ImmutableListSerializer
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 -
Method Summary
Modifier and TypeMethodDescriptioncom.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 voidregisterSerializers(com.esotericsoftware.kryo.kryo5.Kryo kryo) Creates a newImmutableListSerializerand registers its serializer for the several ImmutableList related classes.voidwrite(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
-
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:
writein classcom.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:
readin classcom.esotericsoftware.kryo.kryo5.Serializer<com.google.common.collect.ImmutableList<Object>>
-
registerSerializers
public static void registerSerializers(com.esotericsoftware.kryo.kryo5.Kryo kryo) Creates a newImmutableListSerializerand registers its serializer for the several ImmutableList related classes.- Parameters:
kryo- theKryoinstance to set the serializer on
-