Class PointPairSerializer
java.lang.Object
com.esotericsoftware.kryo.Serializer<com.github.tommyettinger.crux.PointPair>
com.github.tommyettinger.kryo.gdcrux.PointPairSerializer
public class PointPairSerializer
extends com.esotericsoftware.kryo.Serializer<com.github.tommyettinger.crux.PointPair>
Kryo
Serializer for crux PointPairs, which are used by gdcrux.
Needs the type of the points to be registered, such as with
PointF2Serializer for PointF2.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.github.tommyettinger.crux.PointPaircopy(com.esotericsoftware.kryo.Kryo kryo, com.github.tommyettinger.crux.PointPair original) com.github.tommyettinger.crux.PointPairread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends com.github.tommyettinger.crux.PointPair> type) voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, com.github.tommyettinger.crux.PointPair object) Methods inherited from class com.esotericsoftware.kryo.Serializer
getAcceptsNull, isImmutable, setAcceptsNull, setImmutable
-
Constructor Details
-
PointPairSerializer
public PointPairSerializer()
-
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, com.github.tommyettinger.crux.PointPair object) - Specified by:
writein classcom.esotericsoftware.kryo.Serializer<com.github.tommyettinger.crux.PointPair>
-
read
public com.github.tommyettinger.crux.PointPair read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends com.github.tommyettinger.crux.PointPair> type) - Specified by:
readin classcom.esotericsoftware.kryo.Serializer<com.github.tommyettinger.crux.PointPair>
-
copy
public com.github.tommyettinger.crux.PointPair copy(com.esotericsoftware.kryo.Kryo kryo, com.github.tommyettinger.crux.PointPair original) - Overrides:
copyin classcom.esotericsoftware.kryo.Serializer<com.github.tommyettinger.crux.PointPair>
-