|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.collections.DefaultMapEntry
A default implementation of Map.Entry
Constructor Summary | |
DefaultMapEntry()
Constructs a new DefaultMapEntry with a null key
and null value. |
|
DefaultMapEntry(Object key,
Object value)
Constructs a new DefaultMapEntry with the given
key and given value. |
Method Summary | |
boolean |
equals(Object o)
Implemented per API documentation of Map.Entry.equals(Object) |
Object |
getKey()
Returns the key. |
Object |
getValue()
Returns the value. |
int |
hashCode()
Implemented per API documentation of Map.Entry.hashCode() |
void |
setKey(Object key)
Sets the key. |
Object |
setValue(Object value)
Note that this method only sets the local reference inside this object and does not modify the original Map. |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DefaultMapEntry()
DefaultMapEntry
with a null key
and null value.public DefaultMapEntry(Object key, Object value)
DefaultMapEntry
with the given
key and given value.key
- the key for the entry, may be nullvalue
- the value for the entyr, may be nullMethod Detail |
public boolean equals(Object o)
Map.Entry.equals(Object)
public int hashCode()
Map.Entry.hashCode()
public Object getKey()
public Object getValue()
public void setKey(Object key)
key
- the new keypublic Object setValue(Object value)
value
- the new value
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |