org.apache.commons.collections.keyvalue
public abstract class AbstractKeyValue extends Object implements KeyValue
Since: Commons Collections 3.0
Version: $Revision: 1.3 $ $Date: 2004/02/18 01:00:08 $
| 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.
|
Parameters: key the key for the entry, may be null value the value for the entry, may be null
Returns: the key
Returns: the value
Returns: a String view of the entry