|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.collections.keyvalue.AbstractMapEntryDecorator
Provides a base decorator that allows additional functionality to be
added to a Map.Entry
.
Field Summary | |
protected Map.Entry |
entry
The Map.Entry to decorate |
Constructor Summary | |
AbstractMapEntryDecorator(Map.Entry entry)
Constructor that wraps (not copies). |
Method Summary | |
boolean |
equals(Object object)
|
Object |
getKey()
Gets the key from the pair. |
protected Map.Entry |
getMapEntry()
Gets the map being decorated. |
Object |
getValue()
Gets the value from the pair. |
int |
hashCode()
|
Object |
setValue(Object object)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected final Map.Entry entry
Map.Entry
to decorate
Constructor Detail |
public AbstractMapEntryDecorator(Map.Entry entry)
entry
- the Map.Entry
to decorate, must not be null
IllegalArgumentException
- if the collection is nullMethod Detail |
protected Map.Entry getMapEntry()
public Object getKey()
KeyValue
getKey
in interface Map.Entry
public Object getValue()
KeyValue
getValue
in interface Map.Entry
public Object setValue(Object object)
setValue
in interface Map.Entry
public boolean equals(Object object)
equals
in interface Map.Entry
public int hashCode()
hashCode
in interface Map.Entry
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |