| java.lang.Object org.apache.commons.collections.keyvalue.AbstractKeyValue
All known Subclasses: org.apache.commons.collections.keyvalue.AbstractMapEntry,
AbstractKeyValue | abstract public class AbstractKeyValue implements KeyValue(Code) | | Abstract pair class to assist with creating KeyValue and MapEntry implementations.
since: Commons Collections 3.0 version: $Revision: 438363 $ $Date: 2006-08-30 05:48:00 +0100 (Wed, 30 Aug 2006) $ author: James Strachan author: Michael A. Smith author: Neil O'Toole author: Stephen Colebourne |
AbstractKeyValue | protected AbstractKeyValue(Object key, Object value)(Code) | | Constructs a new pair with the specified key and given value.
Parameters: key - the key for the entry, may be null Parameters: value - the value for the entry, may be null |
getKey | public Object getKey()(Code) | | Gets the key from the pair.
the key |
getValue | public Object getValue()(Code) | | Gets the value from the pair.
the value |
toString | public String toString()(Code) | | Gets a debugging String view of the pair.
a String view of the entry |
|
|