Class ConcurrentLinkedHashMap.WeightedValue<V>
- java.lang.Object
-
- com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap.WeightedValue<V>
-
- Enclosing class:
- ConcurrentLinkedHashMap<K,V>
@Immutable static final class ConcurrentLinkedHashMap.WeightedValue<V> extends java.lang.Object
A value, its weight, and the entry's status.
-
-
Constructor Summary
Constructors Constructor Description WeightedValue(V value, int weight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
contains(java.lang.Object o)
(package private) boolean
isAlive()
If the entry is available in the hash-table and page replacement policy.(package private) boolean
isDead()
If the entry was removed from the hash-table and the page replacement policy.(package private) boolean
isRetired()
If the entry was removed from the hash-table and is awaiting removal from the page replacement policy.
-
-
-
Field Detail
-
weight
final int weight
-
value
final V value
-
-
Constructor Detail
-
WeightedValue
WeightedValue(V value, int weight)
-
-
Method Detail
-
contains
boolean contains(java.lang.Object o)
-
isAlive
boolean isAlive()
If the entry is available in the hash-table and page replacement policy.
-
isRetired
boolean isRetired()
If the entry was removed from the hash-table and is awaiting removal from the page replacement policy.
-
isDead
boolean isDead()
If the entry was removed from the hash-table and the page replacement policy.
-
-