| Modifier and Type | Field and Description |
|---|---|
private K |
key
The key of this entry.
|
private V |
value
The value of this entry corresponding with the key
key. |
| Modifier | Constructor and Description |
|---|---|
private |
Entry(K key,
V value)
Creates a new entry for the enclosing map
defined by the given
key and value. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Returns whether
obj equals this entry,
i.e. whether obj
is an instance of Map.Entry
and both, its key and its value equals key and value of this entry. |
K |
getKey()
Returns the
key of this entry. |
V |
getValue()
Returns the
value of this entry. |
int |
hashCode() |
V |
setValue(V value)
Sets a new
value of this entry
and returns the original one. |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcomparingByKey, comparingByKey, comparingByValue, comparingByValueprivate V value
key.
Note that in contrast to the key,
the value of this entry may be changed
(through setValue(Object)).public int hashCode()
Copyright © 2012–2018 Simuline Organization (l2r). All rights reserved.