Class ObjectPair<F,S>

java.lang.Object
com.prineside.tdi2.utils.ObjectPair<F,S>
All Implemented Interfaces:
com.badlogic.gdx.utils.Pool.Poolable, com.esotericsoftware.kryo.KryoSerializable

public final class ObjectPair<F,S> extends Object implements com.badlogic.gdx.utils.Pool.Poolable, com.esotericsoftware.kryo.KryoSerializable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    ObjectPair(F first, S second)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
     
    void
    Resets the object for reuse.
     
    void
    write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • first

      public F first
    • second

      public S second
  • Constructor Details

    • ObjectPair

      public ObjectPair()
    • ObjectPair

      public ObjectPair(F first, S second)
  • Method Details

    • reset

      public void reset()
      Description copied from interface: com.badlogic.gdx.utils.Pool.Poolable
      Resets the object for reuse. Object references should be nulled and fields may be set to default values.
      Specified by:
      reset in interface com.badlogic.gdx.utils.Pool.Poolable
    • write

      public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
      Specified by:
      write in interface com.esotericsoftware.kryo.KryoSerializable
    • read

      public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
      Specified by:
      read in interface com.esotericsoftware.kryo.KryoSerializable
    • toString

      public String toString()
      Overrides:
      toString in class Object