Map.Entry, used both by com.google.common.collect.Maps#immutableEntry(Object, Object) and by other parts of common.collect as a superclass.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final K | |
| private static final long | |
| pack-priv final V |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final K | getKey()
Implements abstract com. Implements java. |
| public final V | getValue()
Implements abstract com. Implements java. |
| public final V | setValue(V
new value to be stored in this entry value)Overrides com. Implements java. |
| key | back to summary |
|---|---|
| pack-priv final K key
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| value | back to summary |
|---|---|
| pack-priv final V value
| |
| ImmutableEntry | back to summary |
|---|---|
| pack-priv ImmutableEntry(K key, V value) | |
| getKey | back to summary |
|---|---|
| public final K getKey() Implements abstract com. Implements java. Doc from java. Returns the key corresponding to this entry.
| |
| getValue | back to summary |
|---|---|
| public final V getValue() Implements abstract com. Implements java. Doc from java. Returns the value corresponding to this entry. If the mapping
has been removed from the backing map (by the iterator's
| |
| setValue | back to summary |
|---|---|
| public final V setValue(V value) Overrides com. Implements java. Doc from java. Replaces the value corresponding to this entry with the specified
value (optional operation). (Writes through to the map.) The
behavior of this call is undefined if the mapping has already been
removed from the map (by the iterator's
| |