protected static class AbstractHashedMap.HashEntry<K,V> extends Objectimplements Map .Entry <K ,V>, KeyValue <K ,V>
If you subclass AbstractHashedMap but not HashEntry then you will not be able to access the protected fields. The entryXxx() methods on AbstractHashedMap exist to provide the necessary access.
| Modifier and Type | Field and Description |
|---|---|
protected int |
hashCode
The hash code of the key
|
protected Object |
key
The key
|
protected AbstractHashedMap |
next
The next entry in the hash chain
|
protected Object |
value
The value
|
| Modifier | Constructor and Description |
|---|---|
protected |
HashEntry(AbstractHashedMap
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object
|
K |
getKey()
Gets the key from the pair.
|
V |
getValue()
Gets the value from the pair.
|
int |
hashCode()
|
V |
setValue(V value)
|
String |
toString()
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcomparingByKey, comparingByKey, comparingByValue, comparingByValueprotected AbstractHashedMap.HashEntry <K ,V> next
protected int hashCode
protected Objectkey
protected Objectvalue
protected HashEntry(AbstractHashedMap.HashEntry <K ,V> next, int hashCode, Object key, V value)
public V getValue()
KeyValue
public boolean equals(Objectobj)
public int hashCode()
public StringtoString()