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