public static interface Map.Entry<K,V>
Map.Entry is a key/value mapping contained in a Map.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object)
Compares the specified object to this
Map.Entry and returns if they
are equal. |
K |
getKey()
Returns the key.
|
V |
getValue()
Returns the value.
|
int |
hashCode()
Returns an integer hash code for the receiver.
|
V |
setValue(V object)
Sets the value of this entry to the specified value, replacing any
existing value.
|
boolean equals(Object object)
Map.Entry and returns if they
are equal. To be equal, the object must be an instance of Map.Entry and have the
same key and value.equals in class Objectobject - the Object to compare with this Object.true if the specified Object is equal to this
Map.Entry, false otherwise.hashCode()K getKey()
V getValue()
int hashCode()
Object which are
equal return the same value for this method.hashCode in class Objectequals(Object)