public abstract class AbstractKeyValue<K,V> extends java.lang.Object implements KeyValue<K,V>
KeyValue
and Map.Entry
implementations.Modifier and Type | Field and Description |
---|---|
private K |
key
The key
|
private V |
value
The value
|
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.
|