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