Class AbstractKeyValue
- java.lang.Object
-
- org.apache.commons.collections.keyvalue.AbstractKeyValue
-
- All Implemented Interfaces:
KeyValue
- Direct Known Subclasses:
AbstractMapEntry
,DefaultKeyValue
@Deprecated(since="2021-04-30") public abstract class AbstractKeyValue extends java.lang.Object implements KeyValue
Deprecated.Commons Collections 3 is in maintenance mode. Commons Collections 4 should be used instead.Abstract pair class to assist with creatingKeyValue
andMap.Entry
implementations.- Since:
- Commons Collections 3.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Object
getKey()
Deprecated.Gets the key from the pair.java.lang.Object
getValue()
Deprecated.Gets the value from the pair.java.lang.String
toString()
Deprecated.Gets a debugging String view of the pair.
-
-
-
Method Detail
-
getKey
public java.lang.Object getKey()
Deprecated.Gets the key from the pair.
-
getValue
public java.lang.Object getValue()
Deprecated.Gets the value from the pair.
-
toString
public java.lang.String toString()
Deprecated.Gets a debugging String view of the pair.- Overrides:
toString
in classjava.lang.Object
- Returns:
- a String view of the entry
-
-