Package org.jboss.netty.util.internal
Class ConcurrentIdentityHashMap.HashEntry<K,V>
- java.lang.Object
-
- org.jboss.netty.util.internal.ConcurrentIdentityHashMap.HashEntry<K,V>
-
- Enclosing class:
- ConcurrentIdentityHashMap<K,V>
static final class ConcurrentIdentityHashMap.HashEntry<K,V> extends java.lang.Object
ConcurrentReferenceHashMap list entry. Note that this is never exported out as a user-visible Map.Entry. Because the value field is volatile, not final, it is legal wrt the Java Memory Model for an unsynchronized reader to see null instead of initial value when read via a data race. Although a reordering leading to this is not likely to ever actually occur, the Segment.readValueUnderLock method is used as a backup in case a null (pre-initialized) value is ever seen in an unsynchronized access method.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) K
key()
(package private) static <K,V>
ConcurrentIdentityHashMap.HashEntry<K,V>[]newArray(int i)
(package private) void
setValue(V value)
(package private) V
value()
-
-
-
Field Detail
-
key
final java.lang.Object key
-
hash
final int hash
-
value
volatile java.lang.Object value
-
next
final ConcurrentIdentityHashMap.HashEntry<K,V> next
-
-
Constructor Detail
-
HashEntry
HashEntry(K key, int hash, ConcurrentIdentityHashMap.HashEntry<K,V> next, V value)
-
-
Method Detail
-
key
K key()
-
value
V value()
-
setValue
void setValue(V value)
-
newArray
static <K,V> ConcurrentIdentityHashMap.HashEntry<K,V>[] newArray(int i)
-
-