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