Class Pair<K,V>

java.lang.Object
org.apache.zookeeper.inspector.manager.Pair<K,V>
Type Parameters:
K -
V -

public class Pair<K,V> extends Object
A utility class for storing a pair of objects
  • Constructor Details

    • Pair

      public Pair(K key, V value)
      Parameters:
      key -
      value -
    • Pair

      public Pair()
  • Method Details

    • getKey

      public K getKey()
      Returns:
      key
    • setKey

      public void setKey(K key)
      Parameters:
      key -
    • getValue

      public V getValue()
      Returns:
      value
    • setValue

      public void setValue(V value)
      Parameters:
      value -
    • 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