K
- the type of keysV
- the type of mapped valuespublic abstract class AbstractMapEntry<K,V> extends AbstractKeyValue<K,V> implements Map.Entry<K,V>
Map.Entry
implementations.Modifier | Constructor and Description |
---|---|
protected |
AbstractMapEntry(K key,
V value)
Constructs a new entry with the given key and given value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compares this
Map.Entry with another Map.Entry . |
int |
hashCode()
Gets a hashCode compatible with the equals method.
|
V |
setValue(V value)
Sets the value stored in this
Map.Entry . |
getKey, getValue, setKey, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
comparingByKey, comparingByKey, comparingByValue, comparingByValue, getKey, getValue
protected AbstractMapEntry(K key, V value)
key
- the key for the entry, may be nullvalue
- the value for the entry, may be nullpublic V setValue(V value)
Map.Entry
.
This Map.Entry
is not connected to a Map, so only the
local data is changed.
public boolean equals(Object obj)
Map.Entry
with another Map.Entry
.
Implemented per API documentation of Map.Entry.equals(Object)
Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.