java.lang.Object | |
↳ | java.util.AbstractMap.SimpleEntry<K, V> |
A key-value mapping.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SimpleEntry(K theKey, V theValue)
Constructs a new instance by key and value.
| |||||||||||
SimpleEntry(Entry<? extends K, ? extends V> entry)
Constructs a new instance by an entry
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
equals(Object object)
Answers whether the object is equal to this entry.
| ||||||||||
K |
getKey()
Returns the key.
| ||||||||||
V |
getValue()
Returns the value.
| ||||||||||
int |
hashCode()
Answers the hash code of this entry.
| ||||||||||
V |
setValue(V object)
Sets the value of this entry to the specified value, replacing any existing
value.
| ||||||||||
String |
toString()
Answers a String representation of this entry.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs a new instance by key and value.
theKey | the key |
---|---|
theValue | the value |
Constructs a new instance by an entry
entry | the entry |
---|
Answers whether the object is equal to this entry. This works across all kinds of the Map.Entry interface.
object | the reference object with which to compare. |
---|
true
if this object is the same as the obj argument;
false
otherwise.Sets the value of this entry to the specified value, replacing any existing value.
object | the new value to set. |
---|
Answers a String representation of this entry.