|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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 nullMethod Detail |
public Object getKey()
getKey
in interface KeyValue
public Object getValue()
getValue
in interface KeyValue
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |