|
||||||||||
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<K,V>
public abstract class AbstractKeyValue<K,V>
Abstract pair class to assist with creating KeyValue and MapEntry implementations.
Field Summary | |
---|---|
protected K |
key
The key |
protected V |
value
The value |
Constructor Summary | |
---|---|
protected |
AbstractKeyValue(K key,
V value)
Constructs a new pair with the specified key and given value. |
Method Summary | |
---|---|
K |
getKey()
Gets the key from the pair. |
V |
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 K key
protected V value
Constructor Detail |
---|
protected AbstractKeyValue(K key, V value)
key
- the key for the entry, may be nullvalue
- the value for the entry, may be nullMethod Detail |
---|
public K getKey()
getKey
in interface KeyValue<K,V>
public V getValue()
getValue
in interface KeyValue<K,V>
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |