Package generic.stl

Class Pair<T1,T2>

java.lang.Object
generic.stl.Pair<T1,T2>
Direct Known Subclasses:
DominantPair

public class Pair<T1,T2> extends Object
  • Field Details

    • first

      public final T1 first
    • second

      public final T2 second
  • Constructor Details

    • Pair

      public Pair(T1 key, T2 value)
  • Method Details

    • emptyPair

      public static <T1, T2> Pair<T1,T2> emptyPair()
    • toString

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

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

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