public class MapEntry<K,V>
extends java.lang.Object
implements java.util.Map.Entry<K,V>
Map.Entry
interface that can be used
with any kind of Map
implementation.
There's one difference from the interface's definition: The setValue(Object)
method does not write through to the map.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
K |
getKey() |
V |
getValue() |
int |
hashCode() |
V |
setValue(V value)
Replaces the value of this entry by the given one and returns the old one.
|
java.lang.String |
toString() |
public V setValue(V value)
public boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String toString()
toString
in class java.lang.Object