java.lang.Object | |
↳ | org.apache.commons.collections.keyvalue.TiedMapEntry |
A java.util.Map.Entry Map.Entry tied to a map underneath.
This can be used to enable a map entry to make changes on the underlying map, however this will probably mess up any iterators.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new entry with the given Map and key.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Compares this
Map.Entry with another Map.Entry . | |||||||||||
Gets the key of this entry
| |||||||||||
Gets the value of this entry direct from the map.
| |||||||||||
Gets a hashCode compatible with the equals method.
| |||||||||||
Sets the value associated with the key direct onto the map.
| |||||||||||
Gets a string version of the entry.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.util.Map.Entry
| |||||||||||
From interface
org.apache.commons.collections.KeyValue
|
Constructs a new entry with the given Map and key.
map | the map |
---|---|
key | the key |
Compares this Map.Entry
with another Map.Entry
.
Implemented per API documentation of equals(Object)
obj | the object to compare to |
---|
Gets a hashCode compatible with the equals method.
Implemented per API documentation of hashCode()
Sets the value associated with the key direct onto the map.
value | the new value |
---|
IllegalArgumentException | if the value is set to this map entry |
---|