java.util.Map.Entry<K, V> |
Known Indirect Subclasses
AbstractMap.SimpleEntry<K, V>,
AbstractMap.SimpleImmutableEntry<K, V>
|
Map.Entry
is a key/value mapping contained in a Map
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Compares the specified object to this
Map.Entry and returns if they
are equal. | |||||||||||
Returns the key.
| |||||||||||
Returns the value.
| |||||||||||
Returns an integer hash code for the receiver.
| |||||||||||
Sets the value of this entry to the specified value, replacing any
existing value.
|
Compares the specified object to this 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.
object | the Object to compare with this Object . |
---|
true
if the specified Object
is equal to this
Map.Entry
, false
otherwise.Returns an integer hash code for the receiver. Object
which are
equal return the same value for this method.
Sets the value of this entry to the specified value, replacing any existing value.
object | the new value to set. |
---|