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 boolean
equals(Object object)
Deprecated.Object
getKey()
Deprecated.Gets the key from the pair.Object
getValue()
Deprecated.Gets the value from the pair.int
hashCode()
Deprecated.Object
setValue(Object object)
Deprecated.String
toString()
Deprecated.
-
-
-
Constructor Detail
-
AbstractMapEntryDecorator
public AbstractMapEntryDecorator(Map.Entry entry)
Deprecated.Constructor that wraps (not copies).- Parameters:
entry
- theMap.Entry
to decorate, must not be null- Throws:
IllegalArgumentException
- if the collection is null
-
-
Method Detail
-
getKey
public Object getKey()
Deprecated.Description copied from interface:KeyValue
Gets the key from the pair.
-
getValue
public Object getValue()
Deprecated.Description copied from interface:KeyValue
Gets the value from the pair.
-
equals
public boolean equals(Object object)
Deprecated.
-
hashCode
public int hashCode()
Deprecated.
-
-