Class InterpolatedRandomSerializer
java.lang.Object
com.esotericsoftware.kryo.Serializer<com.github.tommyettinger.random.InterpolatedRandom>
com.github.tommyettinger.kryo.juniper.InterpolatedRandomSerializer
public class InterpolatedRandomSerializer
extends com.esotericsoftware.kryo.Serializer<com.github.tommyettinger.random.InterpolatedRandom>
Kryo
Serializer for juniper InterpolatedRandoms.
Internally, this stores the serialized String produced by InterpolatedRandom.stringSerialize(Base).
This allows it to reliably store the Interpolator it needs.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.github.tommyettinger.random.InterpolatedRandomcopy(com.esotericsoftware.kryo.Kryo kryo, com.github.tommyettinger.random.InterpolatedRandom original) com.github.tommyettinger.random.InterpolatedRandomread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends com.github.tommyettinger.random.InterpolatedRandom> dataClass) voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, com.github.tommyettinger.random.InterpolatedRandom data) Methods inherited from class com.esotericsoftware.kryo.Serializer
getAcceptsNull, isImmutable, setAcceptsNull, setImmutable
-
Constructor Details
-
InterpolatedRandomSerializer
public InterpolatedRandomSerializer()
-
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, com.github.tommyettinger.random.InterpolatedRandom data) - Specified by:
writein classcom.esotericsoftware.kryo.Serializer<com.github.tommyettinger.random.InterpolatedRandom>
-
read
public com.github.tommyettinger.random.InterpolatedRandom read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends com.github.tommyettinger.random.InterpolatedRandom> dataClass) - Specified by:
readin classcom.esotericsoftware.kryo.Serializer<com.github.tommyettinger.random.InterpolatedRandom>
-
copy
public com.github.tommyettinger.random.InterpolatedRandom copy(com.esotericsoftware.kryo.Kryo kryo, com.github.tommyettinger.random.InterpolatedRandom original) - Overrides:
copyin classcom.esotericsoftware.kryo.Serializer<com.github.tommyettinger.random.InterpolatedRandom>
-