static class KeyComparatorHashMap.Entry<K,V>
extends java.lang.Object
implements java.util.Map.Entry<K,V>
Modifier and Type | Field and Description |
---|---|
(package private) int |
hash |
(package private) K |
key |
(package private) KeyComparatorHashMap.Entry<K,V> |
next |
(package private) V |
value |
Constructor and Description |
---|
Entry(int h,
K k,
V v,
KeyComparatorHashMap.Entry<K,V> n)
Create new entry.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
K |
getKey() |
V |
getValue() |
int |
hashCode() |
(package private) void |
recordAccess(KeyComparatorHashMap<K,V> m)
This method is invoked whenever the value in an entry is
overwritten by an invocation of put(k,v) for a key k that's already
in the HashMap.
|
(package private) void |
recordRemoval(KeyComparatorHashMap<K,V> m)
This method is invoked whenever the entry is
removed from the table.
|
V |
setValue(V newValue) |
java.lang.String |
toString() |
final K key
V value
final int hash
KeyComparatorHashMap.Entry<K,V> next
Entry(int h, K k, V v, KeyComparatorHashMap.Entry<K,V> n)
public boolean equals(java.lang.Object o)
public int hashCode()
public java.lang.String toString()
toString
in class java.lang.Object
void recordAccess(KeyComparatorHashMap<K,V> m)
void recordRemoval(KeyComparatorHashMap<K,V> m)