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: 646777 $ $Date: 2008-04-10 13:33:15 +0100 (Thu, 10 Apr 2008) $
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