Map.Entry implementations.
| Access | Constructor and Description |
|---|---|
| protected | AbstractMapEntry(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 entry with the given key and given value. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if equal key and valuethe object to compare to obj)Overrides java. Implements java. Map.Entry with another Map.Entry.
|
| public int | Returns: a suitable hash codeOverrides java. Implements java. |
| public V | Returns: the previous valuethe new value value)Overrides org. Implements java. Map.Entry.
|
| AbstractMapEntry | back to summary |
|---|---|
| protected AbstractMapEntry(final K key, final V value) Constructs a new entry with the given key and given value.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Implements java. Compares this
Implemented per API documentation of | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. Gets a hashCode compatible with the equals method.
Implemented per API documentation of
| |
| setValue | back to summary |
|---|---|
| public V setValue(final V value) Overrides org. Implements java. Sets the value stored in this
This
| |