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