KeyValue<K,V>
AbstractMapEntry
, DefaultKeyValue
public abstract class AbstractKeyValue<K,V> extends java.lang.Object implements KeyValue<K,V>
KeyValue
and Map.Entry
implementations.Modifier | Constructor | Description |
---|---|---|
protected |
AbstractKeyValue(K key,
V value) |
Constructs a new pair with the specified key and given value.
|
Modifier and Type | Method | 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.
|
Copyright © 2001-2019 - Apache Software Foundation