public abstract class AbstractMapEntry extends AbstractKeyValue implements Map.Entry
Map.Entry
implementations.key, value
Modifier | Constructor and Description |
---|---|
protected |
AbstractMapEntry(Object key,
Object 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.
|
Object |
setValue(Object value)
Sets the value stored in this
Map.Entry . |
getKey, getValue, toString
public Object setValue(Object 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)
public int hashCode()
Implemented per API documentation of Map.Entry.hashCode()
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.