Class Pair<T,U>

java.lang.Object
Pair<T,U>

public class Pair<T,U> extends Object
A class to represent two values.
  • Constructor Details

    • Pair

      public Pair(T f, U s)
  • Method Details

    • getFirst

      public T getFirst()
      Return The first value of this pair.
      Returns:
      The first value of this pair.
    • getSecond

      public U getSecond()
      Return The second value of this pair.
      Returns:
      The second value of this pair.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class Object