java.lang.Object | ||
↳ | org.apache.commons.collections.keyvalue.AbstractKeyValue | |
↳ | org.apache.commons.collections.keyvalue.AbstractMapEntry |
Known Direct Subclasses |
Abstract Pair class to assist with creating correct java.util.Map.Entry Map.Entry implementations.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.commons.collections.keyvalue.AbstractKeyValue
|
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.commons.collections.keyvalue.AbstractKeyValue
| |||||||||||
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 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 |
---|