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 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()
-
-
-
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:
toString
in 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.
-
-