java.lang.Object | ||
↳ | org.apache.commons.collections.keyvalue.AbstractKeyValue | |
↳ | org.apache.commons.collections.keyvalue.AbstractMapEntry |
![]() |
Abstract Pair class to assist with creating correct java.util.Map.Entry Map.Entry implementations.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new entry with the given key and given value.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Compares this
Map.Entry with another Map.Entry . | |||||||||||
Gets a hashCode compatible with the equals method.
| |||||||||||
Sets the value stored in this
Map.Entry . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Constructs a new entry with the given key and given value.
key | the key for the entry, may be null |
---|---|
value | the value for the entry, may be null |
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 stored in this Map.Entry
.
This Map.Entry
is not connected to a Map, so only the
local data is changed.
value | the new value |
---|