|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.collections.keyvalue.AbstractKeyValue
Abstract pair class to assist with creating KeyValue and MapEntry implementations.
| Field Summary | |
protected Object |
key
The key |
protected Object |
value
The value |
| Constructor Summary | |
protected |
AbstractKeyValue(Object key,
Object value)
Constructs a new pair with the specified key and given value. |
| Method Summary | |
Object |
getKey()
Gets the key from the pair. |
Object |
getValue()
Gets the value from the pair. |
String |
toString()
Gets a debugging String view of the pair. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Object key
protected Object value
| Constructor Detail |
protected AbstractKeyValue(Object key,
Object value)
key - the key for the entry, may be nullvalue - the value for the entry, may be null| Method Detail |
public Object getKey()
getKey in interface KeyValuepublic Object getValue()
getValue in interface KeyValuepublic String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||