Class UniqueIdentifierGeneratorSerializer
java.lang.Object
com.esotericsoftware.kryo.Serializer<com.github.tommyettinger.cringe.UniqueIdentifier.Generator>
com.github.tommyettinger.kryo.cringe.UniqueIdentifierGeneratorSerializer
public class UniqueIdentifierGeneratorSerializer
extends com.esotericsoftware.kryo.Serializer<com.github.tommyettinger.cringe.UniqueIdentifier.Generator>
Doesn't need anything else registered. The name doesn't match exactly; the class
this serializes and deserializes is
UniqueIdentifier.Generator.
You usually will want to assign the result of read(Kryo, Input, Class) to
UniqueIdentifier.GENERATOR. Unlike in earlier versions, this does not assign
to GENERATOR automatically.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.github.tommyettinger.cringe.UniqueIdentifier.Generatorcopy(com.esotericsoftware.kryo.Kryo kryo, com.github.tommyettinger.cringe.UniqueIdentifier.Generator original) com.github.tommyettinger.cringe.UniqueIdentifier.Generatorread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends com.github.tommyettinger.cringe.UniqueIdentifier.Generator> dataClass) voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, com.github.tommyettinger.cringe.UniqueIdentifier.Generator data) Methods inherited from class com.esotericsoftware.kryo.Serializer
getAcceptsNull, isImmutable, setAcceptsNull, setImmutable
-
Constructor Details
-
UniqueIdentifierGeneratorSerializer
public UniqueIdentifierGeneratorSerializer()
-
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, com.github.tommyettinger.cringe.UniqueIdentifier.Generator data) - Specified by:
writein classcom.esotericsoftware.kryo.Serializer<com.github.tommyettinger.cringe.UniqueIdentifier.Generator>
-
read
public com.github.tommyettinger.cringe.UniqueIdentifier.Generator read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends com.github.tommyettinger.cringe.UniqueIdentifier.Generator> dataClass) - Specified by:
readin classcom.esotericsoftware.kryo.Serializer<com.github.tommyettinger.cringe.UniqueIdentifier.Generator>
-
copy
public com.github.tommyettinger.cringe.UniqueIdentifier.Generator copy(com.esotericsoftware.kryo.Kryo kryo, com.github.tommyettinger.cringe.UniqueIdentifier.Generator original) - Overrides:
copyin classcom.esotericsoftware.kryo.Serializer<com.github.tommyettinger.cringe.UniqueIdentifier.Generator>
-