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