Package generic.stl

Class Pair<T1,​T2>

  • Direct Known Subclasses:
    DominantPair

    public class Pair<T1,​T2>
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      T1 first  
      T2 second  
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair​(T1 key, T2 value)  
    • Field Detail

      • first

        public final T1 first
      • second

        public final T2 second
    • Constructor Detail

      • Pair

        public Pair​(T1 key,
                    T2 value)
    • Method Detail

      • emptyPair

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

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

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object