|
||||||||||
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
public abstract class AbstractKeyValue
Abstract pair class to assist with creating KeyValue
and Map.Entry
implementations.
Field Summary | |
---|---|
protected java.lang.Object |
key
The key |
protected java.lang.Object |
value
The value |
Constructor Summary | |
---|---|
protected |
AbstractKeyValue(java.lang.Object key,
java.lang.Object value)
Constructs a new pair with the specified key and given value. |
Method Summary | |
---|---|
java.lang.Object |
getKey()
Gets the key from the pair. |
java.lang.Object |
getValue()
Gets the value from the pair. |
java.lang.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 java.lang.Object key
protected java.lang.Object value
Constructor Detail |
---|
protected AbstractKeyValue(java.lang.Object key, java.lang.Object value)
key
- the key for the entry, may be nullvalue
- the value for the entry, may be nullMethod Detail |
---|
public java.lang.Object getKey()
getKey
in interface KeyValue
public java.lang.Object getValue()
getValue
in interface KeyValue
public 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 |