| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 | keyThe key | 
| protected  java.lang.Object | valueThe 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 null| Method Detail | 
|---|
public java.lang.Object getKey()
getKey in interface KeyValuepublic java.lang.Object getValue()
getValue in interface KeyValuepublic 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 | |||||||||