Class AbstractMapEntryDecorator
- java.lang.Object
-
- org.apache.commons.collections.keyvalue.AbstractMapEntryDecorator
-
- All Implemented Interfaces:
java.util.Map.Entry,KeyValue
@Deprecated(since="2021-04-30") public abstract class AbstractMapEntryDecorator extends java.lang.Object implements java.util.Map.Entry, KeyValue
Deprecated.Commons Collections 3 is in maintenance mode. Commons Collections 4 should be used instead.Provides a base decorator that allows additional functionality to be added to aMap.Entry.- Since:
- Commons Collections 3.0
-
-
Constructor Summary
Constructors Constructor Description AbstractMapEntryDecorator(java.util.Map.Entry entry)Deprecated.Constructor that wraps (not copies).
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object object)Deprecated.java.lang.ObjectgetKey()Deprecated.Gets the key from the pair.java.lang.ObjectgetValue()Deprecated.Gets the value from the pair.inthashCode()Deprecated.java.lang.ObjectsetValue(java.lang.Object object)Deprecated.java.lang.StringtoString()Deprecated.
-
-
-
Method Detail
-
getKey
public java.lang.Object getKey()
Deprecated.Description copied from interface:KeyValueGets the key from the pair.
-
getValue
public java.lang.Object getValue()
Deprecated.Description copied from interface:KeyValueGets the value from the pair.
-
setValue
public java.lang.Object setValue(java.lang.Object object)
Deprecated.- Specified by:
setValuein interfacejava.util.Map.Entry
-
equals
public boolean equals(java.lang.Object object)
Deprecated.- Specified by:
equalsin interfacejava.util.Map.Entry- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Specified by:
hashCodein interfacejava.util.Map.Entry- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
-