Class Pair<A,B>

java.lang.Object
com.fs.starfarer.api.util.Pair<A,B>

public class Pair<A,B> extends Object
Simple container class for a pair of items. Has valid hashCode() and equals() methods. A pair is equal to another pair if each of the item .equals() their counterpart.
Author:
Alexander Mosolov
  • Field Details

    • one

      public A one
    • two

      public B two
  • Constructor Details

    • Pair

      public Pair()
    • Pair

      public Pair(A one, B two)
  • Method Details