Class Pair<X,​Y>


  • public class Pair<X,​Y>
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair​(@Nullable X key, @Nullable Y value)  
    • Constructor Detail

      • Pair

        public Pair​(@Nullable X key,
                    @Nullable Y value)
    • Method Detail

      • key

        public @Nullable X key()
      • value

        public @Nullable Y value()
      • getKey

        @Deprecated
        public @Nullable X getKey()
        Deprecated.
      • getValue

        @Deprecated
        public @Nullable Y getValue()
        Deprecated.
      • setValue

        @Deprecated
        public void setValue​(@Nullable Y value)
        Deprecated.
        don't count on this continuing to be mutable
      • toString

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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