Class KeyComparatorHashMap.Entry<K,V>
java.lang.Object
org.glassfish.jersey.internal.util.collection.KeyComparatorHashMap.Entry<K,V>
- All Implemented Interfaces:
Map.Entry<K,
V>
- Direct Known Subclasses:
KeyComparatorLinkedHashMap.Entry
- Enclosing class:
- KeyComparatorHashMap<K,
V>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getKey()
getValue()
int
hashCode()
(package private) void
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
This method is invoked whenever the entry is removed from the table.toString()
-
Field Details
-
key
-
value
V value -
hash
final int hash -
next
KeyComparatorHashMap.Entry<K,V> next
-
-
Constructor Details
-
Entry
Entry(int h, K k, V v, KeyComparatorHashMap.Entry<K, V> n) Create new entry.
-
-
Method Details
-
getKey
-
getValue
-
setValue
-
equals
-
hashCode
public int hashCode() -
toString
-
recordAccess
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
This method is invoked whenever the entry is removed from the table.
-