public abstract class AbstractMapEntry extends AbstractKeyValue implements java.util.Map.Entry
Map.Entry implementations.key, value| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMapEntry(java.lang.Object key,
java.lang.Object value)
Constructs a new entry with the given key and given value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares this
Map.Entry with another Map.Entry. |
int |
hashCode()
Gets a hashCode compatible with the equals method.
|
java.lang.Object |
setValue(java.lang.Object value)
Sets the value stored in this
Map.Entry. |
getKey, getValue, toStringprotected AbstractMapEntry(java.lang.Object key,
java.lang.Object value)
key - the key for the entry, may be nullvalue - the value for the entry, may be nullpublic java.lang.Object setValue(java.lang.Object value)
Map.Entry.
This Map.Entry is not connected to a Map, so only the
local data is changed.
setValue in interface java.util.Map.Entryvalue - the new valuepublic boolean equals(java.lang.Object obj)
Map.Entry with another Map.Entry.
Implemented per API documentation of Map.Entry.equals(Object)
equals in interface java.util.Map.Entryequals in class java.lang.Objectobj - the object to compare topublic int hashCode()
Implemented per API documentation of Map.Entry.hashCode()
hashCode in interface java.util.Map.EntryhashCode in class java.lang.ObjectCopyright © 2001-2025 Apache Software Foundation. All Rights Reserved.