Class Pair<K,​V>

  • All Implemented Interfaces:
    java.io.Serializable

    public class Pair<K,​V>
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair()  
      Pair​(K key, V value)  
    • Method Summary

      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      K getKey()  
      V getValue()  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Pair

        public Pair()
      • Pair

        public Pair​(K key,
                    V value)
    • Method Detail

      • getKey

        public K getKey()
      • getValue

        public V getValue()
      • 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
      • toString

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