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