Class EnumMapSerializer
java.lang.Object
com.esotericsoftware.kryo.Serializer<com.github.tommyettinger.ds.EnumMap<?>>
com.github.tommyettinger.kryo.jdkgdxds.EnumMapSerializer
public class EnumMapSerializer
extends com.esotericsoftware.kryo.Serializer<com.github.tommyettinger.ds.EnumMap<?>>
Kryo
Serializer for jdkgdxds EnumMaps.
Requires the type of any enum keys that are contained in an EnumMap to also be registered.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.github.tommyettinger.ds.EnumMap<?>copy(com.esotericsoftware.kryo.Kryo kryo, com.github.tommyettinger.ds.EnumMap<?> original) com.github.tommyettinger.ds.EnumMap<?>read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends com.github.tommyettinger.ds.EnumMap<?>> dataClass) voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, com.github.tommyettinger.ds.EnumMap<?> data) Methods inherited from class com.esotericsoftware.kryo.Serializer
getAcceptsNull, isImmutable, setAcceptsNull, setImmutable
-
Constructor Details
-
EnumMapSerializer
public EnumMapSerializer()
-
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, com.github.tommyettinger.ds.EnumMap<?> data) - Specified by:
writein classcom.esotericsoftware.kryo.Serializer<com.github.tommyettinger.ds.EnumMap<?>>
-
read
public com.github.tommyettinger.ds.EnumMap<?> read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends com.github.tommyettinger.ds.EnumMap<?>> dataClass) - Specified by:
readin classcom.esotericsoftware.kryo.Serializer<com.github.tommyettinger.ds.EnumMap<?>>
-
copy
public com.github.tommyettinger.ds.EnumMap<?> copy(com.esotericsoftware.kryo.Kryo kryo, com.github.tommyettinger.ds.EnumMap<?> original) - Overrides:
copyin classcom.esotericsoftware.kryo.Serializer<com.github.tommyettinger.ds.EnumMap<?>>
-