KeyValue
and Map.Entry implementations.
| Access | Constructor and Description |
|---|---|
| protected | AbstractKeyValue(final K
the key for the entry, may be null key, final V the value for the entry, may be null value)Constructs a new pair with the specified key and given value. |
| Modifier and Type | Method and Description |
|---|---|
| public K | Returns: the keyImplements org. |
| public V | Returns: the valueImplements org. |
| protected K | |
| protected V | |
| public String | Returns: a String view of the entryOverrides java. |
| AbstractKeyValue | back to summary |
|---|---|
| protected AbstractKeyValue(final K key, final V value) Constructs a new pair with the specified key and given value.
| |
| getKey | back to summary |
|---|---|
| public K getKey() Implements org. Gets the key from the pair.
| |
| getValue | back to summary |
|---|---|
| public V getValue() Implements org. Gets the value from the pair.
| |
| setKey | back to summary |
|---|---|
| protected K setKey(final K key) | |
| setValue | back to summary |
|---|---|
| protected V setValue(final V value) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Gets a debugging String view of the pair. | |