java.util.Map.Entry<K, V> |
![]()
AbstractMap.SimpleEntry<K, V>,
AbstractMap.SimpleImmutableEntry<K, V>
|
Map.Entry
is a key/value mapping contained in a Map
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract boolean |
equals(Object object)
Compares the specified object to this
Map.Entry and returns if they
are equal. | ||||||||||
abstract K |
getKey()
Returns the key.
| ||||||||||
abstract V |
getValue()
Returns the value.
| ||||||||||
abstract int |
hashCode()
Returns an integer hash code for the receiver.
| ||||||||||
abstract V |
setValue(V object)
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 the key.
Returns the value.
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. |
---|