Class ConcurrentHashMapV8.Node<K,V>
- java.lang.Object
-
- org.glassfish.jersey.internal.util.collection.ConcurrentHashMapV8.Node<K,V>
-
- All Implemented Interfaces:
java.util.Map.Entry<K,V>
- Direct Known Subclasses:
ConcurrentHashMapV8.ForwardingNode
,ConcurrentHashMapV8.ReservationNode
,ConcurrentHashMapV8.TreeBin
,ConcurrentHashMapV8.TreeNode
- Enclosing class:
- ConcurrentHashMapV8<K,V>
static class ConcurrentHashMapV8.Node<K,V> extends java.lang.Object implements java.util.Map.Entry<K,V>
Key-value entry. This class is never exported out as a user-mutable Map.Entry (i.e., one supporting setValue; see MapEntry below), but can be used for read-only traversals used in bulk tasks. Subclasses of Node with a negative hash field are special, and contain null keys and values (but are never exported). Otherwise, keys and vals are never null.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
(package private) ConcurrentHashMapV8.Node<K,V>
find(int h, java.lang.Object k)
Virtualized support for map.get(); overridden in subclasses.K
getKey()
V
getValue()
int
hashCode()
V
setValue(V value)
java.lang.String
toString()
-
-
-
Field Detail
-
hash
final int hash
-
key
final K key
-
val
volatile V val
-
next
volatile ConcurrentHashMapV8.Node<K,V> next
-
-
Constructor Detail
-
Node
Node(int hash, K key, V val, ConcurrentHashMapV8.Node<K,V> next)
-
-
Method Detail
-
hashCode
public final int hashCode()
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public final boolean equals(java.lang.Object o)
-
find
ConcurrentHashMapV8.Node<K,V> find(int h, java.lang.Object k)
Virtualized support for map.get(); overridden in subclasses.
-
-