K - the type of keysV - the type of valuespublic abstract class AbstractKeyValue<K,V> extends java.lang.Object implements KeyValue<K,V>
KeyValue
and Map.Entry implementations.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractKeyValue(K key,
V value)
Constructs a new pair with the specified key and given value.
|
| Modifier and Type | Method and Description |
|---|---|
K |
getKey()
Gets the key from the pair.
|
V |
getValue()
Gets the value from the pair.
|
protected K |
setKey(K key) |
protected V |
setValue(V value) |
java.lang.String |
toString()
Gets a debugging String view of the pair.
|