Package org.infinispan.util
Class KeyValuePair<K,V>
- java.lang.Object
-
- org.infinispan.util.KeyValuePair<K,V>
-
public class KeyValuePair<K,V> extends java.lang.Object
Holds logically related key-value pairs or binary tuples.- Since:
- 6.0
- Author:
- Mircea Markus
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KeyValuePair.Externalizer
-
Constructor Summary
Constructors Constructor Description KeyValuePair(K key, V value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
K
getKey()
V
getValue()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getKey
public K getKey()
-
getValue
public V getValue()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-