org.apache.commons.collections.keyvalue
public abstract class AbstractKeyValue extends Object implements KeyValue
KeyValue
and java.util.Map.Entry Map.Entry implementations.
Since: Commons Collections 3.0
Version: $Revision: 405927 $ $Date: 2006-05-12 23:57:03 +0100 (Fri, 12 May 2006) $
| 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