Class KeyValuePair<K,V>

java.lang.Object
org.infinispan.util.KeyValuePair<K,V>

public class KeyValuePair<K,V> extends Object
Holds logically related key-value pairs or binary tuples.
Since:
6.0
Author:
Mircea Markus
  • Constructor Details

    • KeyValuePair

      public KeyValuePair(K key, V value)
  • Method Details

    • of

      public static <K, V> KeyValuePair<K,V> of(K key, V value)
    • getKey

      public K getKey()
    • getValue

      public V getValue()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object