Class UnmodifiableCollectionsSerializer
java.lang.Object
com.esotericsoftware.kryo.kryo5.Serializer<Object>
com.xebialabs.xlrelease.actors.kryoserializers.javakaffee.UnmodifiableCollectionsSerializer
public class UnmodifiableCollectionsSerializer
extends com.esotericsoftware.kryo.kryo5.Serializer<Object>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Input input, Class<? extends Object> clazz) static voidregisterSerializers(com.esotericsoftware.kryo.kryo5.Kryo kryo) Creates a newUnmodifiableCollectionsSerializerand registers its serializer for the several unmodifiable Collections that can be created viaCollections, includingMaps.voidwrite(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Output output, Object object) Methods inherited from class com.esotericsoftware.kryo.kryo5.Serializer
getAcceptsNull, isImmutable, setAcceptsNull, setImmutable
-
Constructor Details
-
UnmodifiableCollectionsSerializer
public UnmodifiableCollectionsSerializer()
-
-
Method Details
-
read
public Object read(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Input input, Class<? extends Object> clazz) - Specified by:
readin classcom.esotericsoftware.kryo.kryo5.Serializer<Object>
-
write
public void write(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Output output, Object object) - Specified by:
writein classcom.esotericsoftware.kryo.kryo5.Serializer<Object>
-
copy
- Overrides:
copyin classcom.esotericsoftware.kryo.kryo5.Serializer<Object>
-
registerSerializers
public static void registerSerializers(com.esotericsoftware.kryo.kryo5.Kryo kryo) Creates a newUnmodifiableCollectionsSerializerand registers its serializer for the several unmodifiable Collections that can be created viaCollections, includingMaps.- Parameters:
kryo- theKryoinstance to set the serializer on.- See Also:
-