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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.github.tommyettinger.crux.PointPair
    copy(com.esotericsoftware.kryo.Kryo kryo, com.github.tommyettinger.crux.PointPair original)
     
    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)
     
    void
    write(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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:
      write in class com.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:
      read in class com.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:
      copy in class com.esotericsoftware.kryo.Serializer<com.github.tommyettinger.crux.PointPair>