Package org.jsr166
Class ConcurrentLinkedHashMap.HashEntry<K,V>
- java.lang.Object
-
- org.jsr166.ConcurrentLinkedHashMap.HashEntry<K,V>
-
- Enclosing class:
- ConcurrentLinkedHashMap<K,V>
public static final class ConcurrentLinkedHashMap.HashEntry<K,V> extends Object
ConcurrentHashMap 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 snapshot in case a null (pre-initialized) value is ever seen in an unsynchronized access method.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description K
getKey()
Returns key of this entry.V
getValue()
Return value of this entry.String
toString()
-