public class MapEntry
extends java.lang.Object
implements java.util.Map.Entry
Constructor and Description |
---|
MapEntry(java.lang.Object key,
java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(MapEntry that) |
boolean |
equals(java.lang.Object that) |
java.lang.Object |
getKey() |
java.lang.Object |
getValue() |
protected int |
hash(java.lang.Object object)
Helper method to handle object hashes for possibly null values
|
int |
hashCode() |
void |
setKey(java.lang.Object key) |
java.lang.Object |
setValue(java.lang.Object value) |
java.lang.String |
toString() |
public boolean equals(java.lang.Object that)
equals
in interface java.util.Map.Entry
equals
in class java.lang.Object
public boolean equals(MapEntry that)
public int hashCode()
hashCode
in interface java.util.Map.Entry
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object getKey()
getKey
in interface java.util.Map.Entry
public void setKey(java.lang.Object key)
public java.lang.Object getValue()
getValue
in interface java.util.Map.Entry
public java.lang.Object setValue(java.lang.Object value)
setValue
in interface java.util.Map.Entry
protected int hash(java.lang.Object object)