Class Pair<T,U>

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

public abstract class Pair<T,U> extends Object
A tuple of two values. Abstract in order to force creation of specific semantic subclasses.

Created by Pepijn on 26-2-2017.

  • Constructor Details

    • Pair

      protected Pair(T value1, U value2)
  • Method Details

    • getValue1

      protected final T getValue1()
    • getValue2

      protected final U getValue2()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object