org.apache.commons.collections.keyvalue
public abstract class AbstractMapEntry extends AbstractKeyValue implements Entry
Since: Commons Collections 3.0
Version: $Revision: 1.4 $ $Date: 2004/02/18 01:00:08 $
Constructor Summary | |
---|---|
protected | AbstractMapEntry(Object key, Object value)
Constructs a new entry with the given key and given value.
|
Method Summary | |
---|---|
boolean | equals(Object obj)
Compares this Map Entry with another Map Entry.
|
int | hashCode()
Gets a hashCode compatible with the equals method.
|
Object | setValue(Object value)
Sets the value stored in this Map Entry.
|
Parameters: key the key for the entry, may be null value the value for the entry, may be null
Implemented per API documentation of {@link java.util.Map.Entry#equals(Object)}
Parameters: obj the object to compare to
Returns: true if equal key and value
Implemented per API documentation of {@link java.util.Map.Entry#hashCode()}
Returns: a suitable hash code
This Map Entry is not connected to a Map, so only the local data is changed.
Parameters: value the new value
Returns: the previous value