Class DistributionWrapperSerializer
java.lang.Object
com.esotericsoftware.kryo.Serializer<com.github.tommyettinger.random.DistributionWrapper>
com.github.tommyettinger.kryo.juniper.DistributionWrapperSerializer
public class DistributionWrapperSerializer
extends com.esotericsoftware.kryo.Serializer<com.github.tommyettinger.random.DistributionWrapper>
Kryo
Serializer for juniper DistributionWrappers.
Internally, this stores the serialized String produced by DistributionWrapper.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.DistributionWrappercopy(com.esotericsoftware.kryo.Kryo kryo, com.github.tommyettinger.random.DistributionWrapper original) com.github.tommyettinger.random.DistributionWrapperread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends com.github.tommyettinger.random.DistributionWrapper> dataClass) voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, com.github.tommyettinger.random.DistributionWrapper data) Methods inherited from class com.esotericsoftware.kryo.Serializer
getAcceptsNull, isImmutable, setAcceptsNull, setImmutable
-
Constructor Details
-
DistributionWrapperSerializer
public DistributionWrapperSerializer()
-
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, com.github.tommyettinger.random.DistributionWrapper data) - Specified by:
writein classcom.esotericsoftware.kryo.Serializer<com.github.tommyettinger.random.DistributionWrapper>
-
read
public com.github.tommyettinger.random.DistributionWrapper read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends com.github.tommyettinger.random.DistributionWrapper> dataClass) - Specified by:
readin classcom.esotericsoftware.kryo.Serializer<com.github.tommyettinger.random.DistributionWrapper>
-
copy
public com.github.tommyettinger.random.DistributionWrapper copy(com.esotericsoftware.kryo.Kryo kryo, com.github.tommyettinger.random.DistributionWrapper original) - Overrides:
copyin classcom.esotericsoftware.kryo.Serializer<com.github.tommyettinger.random.DistributionWrapper>
-