Class AbstractMapEntryDecorator
- java.lang.Object
-
- org.apache.commons.collections.keyvalue.AbstractMapEntryDecorator
-
@Deprecated(since="2021-04-30") public abstract class AbstractMapEntryDecorator extends Object implements 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(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(Object object)Deprecated.ObjectgetKey()Deprecated.Gets the key from the pair.ObjectgetValue()Deprecated.Gets the value from the pair.inthashCode()Deprecated.ObjectsetValue(Object object)Deprecated.StringtoString()Deprecated.
-
-
-
Constructor Detail
-
AbstractMapEntryDecorator
public AbstractMapEntryDecorator(Map.Entry entry)
Deprecated.Constructor that wraps (not copies).- Parameters:
entry- theMap.Entryto decorate, must not be null- Throws:
IllegalArgumentException- if the collection is null
-
-
Method Detail
-
getKey
public Object getKey()
Deprecated.Description copied from interface:KeyValueGets the key from the pair.
-
getValue
public Object getValue()
Deprecated.Description copied from interface:KeyValueGets the value from the pair.
-
equals
public boolean equals(Object object)
Deprecated.
-
hashCode
public int hashCode()
Deprecated.
-
-