Class Pair<T,U>

java.lang.Object
org.silverpeas.kernel.util.Pair<T,U>

public class Pair<T,U> extends Object
This is a pair of objects.
Author:
J-C Groccia
  • Constructor Details

    • Pair

      public Pair(T first, U second)
      constructor
  • Method Details

    • of

      public static <T, U> Pair<T,U> of(T first, U second)
    • getFirst

      public T getFirst()
    • getSecond

      public U getSecond()
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object