Class Tuple<A,B>

java.lang.Object
org.opencastproject.util.data.Tuple<A,B>

public final class Tuple<A,B> extends Object
A pair.
  • Constructor Details

    • Tuple

      public Tuple(A a, B b)
  • Method Details

    • getA

      public A getA()
      Get the first element.
    • getB

      public B getB()
      Get the second element.
    • equals

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

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

      public static <A, B> Tuple<A,B> tuple(A a, B b)
      Create a new tuple with two elements a and b.
    • toString

      public String toString()
      Overrides:
      toString in class Object