Class AbstractKeyValue
- java.lang.Object
-
- org.apache.commons.collections.keyvalue.AbstractKeyValue
-
- All Implemented Interfaces:
KeyValue
- Direct Known Subclasses:
AbstractMapEntry,DefaultKeyValue
public abstract class AbstractKeyValue extends Object implements KeyValue
Abstract pair class to assist with creatingKeyValueandMap.Entryimplementations.- Since:
- Commons Collections 3.0
- Version:
- $Revision: 646777 $ $Date: 2008-04-10 14:33:15 +0200 (Thu, 10 Apr 2008) $
- Author:
- James Strachan, Michael A. Smith, Neil O'Toole, Stephen Colebourne
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractKeyValue(Object key, Object value)Constructs a new pair with the specified key and given value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetKey()Gets the key from the pair.ObjectgetValue()Gets the value from the pair.StringtoString()Gets a debugging String view of the pair.
-