| java.lang.Object org.apache.commons.collections.DefaultMapEntry
Constructor Summary | |
public | DefaultMapEntry() Constructs a new DefaultMapEntry with a null key
and null value. | public | DefaultMapEntry(Object key, Object value) Constructs a new DefaultMapEntry with the given
key and given value. |
DefaultMapEntry | public DefaultMapEntry()(Code) | | Constructs a new DefaultMapEntry with a null key
and null value.
|
DefaultMapEntry | public DefaultMapEntry(Object key, Object value)(Code) | | Constructs a new DefaultMapEntry with the given
key and given value.
Parameters: key - the key for the entry, may be null Parameters: value - the value for the entyr, may be null |
equals | public boolean equals(Object o)(Code) | | Implemented per API documentation of
java.util.Map.Entry.equals(Object) |
getValue | public Object getValue()(Code) | | Returns the value.
the value |
hashCode | public int hashCode()(Code) | | Implemented per API documentation of
java.util.Map.Entry.hashCode |
setKey | public void setKey(Object key)(Code) | | Sets the key. This method does not modify any map.
Parameters: key - the new key |
setValue | public Object setValue(Object value)(Code) | | Note that this method only sets the local reference inside this object and
does not modify the original Map.
the old value of the value Parameters: value - the new value |
|
|