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