protected static class AbstractHashedMap.HashEntry extends Object implements Map.Entry, KeyValue
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.HashEntry |
next
The next entry in the hash chain
|
protected Object |
value
The value
|
Modifier | Constructor and Description |
---|---|
protected |
HashEntry(AbstractHashedMap.HashEntry next,
int hashCode,
Object key,
Object value)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Object |
getKey()
Gets the key from the pair.
|
Object |
getValue()
Gets the value from the pair.
|
int |
hashCode() |
Object |
setValue(Object value) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
comparingByKey, comparingByKey, comparingByValue, comparingByValue
protected AbstractHashedMap.HashEntry next
protected int hashCode
protected Object key
protected Object value
protected HashEntry(AbstractHashedMap.HashEntry next, int hashCode, Object key, Object value)
next
- the nexthashCode
- the hash codekey
- the keyvalue
- the value