Class KeyComparatorHashMap.Entry<K,V>
- java.lang.Object
-
- org.glassfish.jersey.internal.util.collection.KeyComparatorHashMap.Entry<K,V>
-
- All Implemented Interfaces:
java.util.Map.Entry<K,V>
- Direct Known Subclasses:
KeyComparatorLinkedHashMap.Entry
- Enclosing class:
- KeyComparatorHashMap<K,V>
static class KeyComparatorHashMap.Entry<K,V> extends java.lang.Object implements java.util.Map.Entry<K,V>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)KgetKey()VgetValue()inthashCode()(package private) voidrecordAccess(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) voidrecordRemoval(KeyComparatorHashMap<K,V> m)This method is invoked whenever the entry is removed from the table.VsetValue(V newValue)java.lang.StringtoString()
-
-
-
Field Detail
-
key
final K key
-
value
V value
-
hash
final int hash
-
next
KeyComparatorHashMap.Entry<K,V> next
-
-
Constructor Detail
-
Entry
Entry(int h, K k, V v, KeyComparatorHashMap.Entry<K,V> n)Create new entry.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
-
hashCode
public int hashCode()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
recordAccess
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.
-
recordRemoval
void recordRemoval(KeyComparatorHashMap<K,V> m)
This method is invoked whenever the entry is removed from the table.
-
-