Class AbstractMapEntry
- java.lang.Object
-
- org.apache.commons.collections.keyvalue.AbstractKeyValue
-
- org.apache.commons.collections.keyvalue.AbstractMapEntry
-
- Direct Known Subclasses:
DefaultMapEntry
,UnmodifiableMapEntry
@Deprecated(since="2021-04-30") public abstract class AbstractMapEntry extends AbstractKeyValue implements Map.Entry
Deprecated.Commons Collections 3 is in maintenance mode. Commons Collections 4 should be used instead.Abstract Pair class to assist with creating correctMap.Entry
implementations.- Since:
- Commons Collections 3.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object obj)
Deprecated.Compares thisMap.Entry
with anotherMap.Entry
.int
hashCode()
Deprecated.Gets a hashCode compatible with the equals method.Object
setValue(Object value)
Deprecated.Sets the value stored in thisMap.Entry
.-
Methods inherited from class org.apache.commons.collections.keyvalue.AbstractKeyValue
getKey, getValue, toString
-
-
-
-
Method Detail
-
setValue
public Object setValue(Object value)
Deprecated.Sets the value stored in thisMap.Entry
.This
Map.Entry
is not connected to a Map, so only the local data is changed.
-
equals
public boolean equals(Object obj)
Deprecated.Compares thisMap.Entry
with anotherMap.Entry
.Implemented per API documentation of
Map.Entry.equals(Object)
-
hashCode
public int hashCode()
Deprecated.Gets a hashCode compatible with the equals method.Implemented per API documentation of
Map.Entry.hashCode()
-
-