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 java.lang.Object implements KeyValue
Abstract pair class to assist with creatingKeyValueandMap.Entryimplementations.- Since:
- Commons Collections 3.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetKey()Gets the key from the pair.java.lang.ObjectgetValue()Gets the value from the pair.java.lang.StringtoString()Gets a debugging String view of the pair.
-
-
-
Method Detail
-
getKey
public java.lang.Object getKey()
Gets the key from the pair.
-
getValue
public java.lang.Object getValue()
Gets the value from the pair.
-
toString
public java.lang.String toString()
Gets a debugging String view of the pair.- Overrides:
toStringin classjava.lang.Object- Returns:
- a String view of the entry
-
-