| java.lang.Object | |
| ↳ | java.util.AbstractMap.SimpleImmutableEntry<K, V> |
An immutable key-value mapping.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
SimpleImmutableEntry(K theKey, V theValue)
Constructs a new instance by key and value.
| |||||||||||
|
SimpleImmutableEntry(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)
Throws an UnsupportedOperationException.
| ||||||||||
| String |
toString()
Answers a String representation of this entry.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.util.Map.Entry
| |||||||||||
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.Throws an UnsupportedOperationException.
| object | new value |
|---|
| UnsupportedOperationException | always |
|---|
Answers a String representation of this entry.