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 Object
A value, its weight, and the entry's status.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final V
     
    (package private) final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    WeightedValue(V value, int weight)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) boolean
     
    (package private) boolean
    If the entry is available in the hash-table and page replacement policy.
    (package private) boolean
    If the entry was removed from the hash-table and the page replacement policy.
    (package private) boolean
    If the entry was removed from the hash-table and is awaiting removal from the page replacement policy.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • weight

      final int weight
    • value

      final V value
  • Constructor Details

    • WeightedValue

      WeightedValue(V value, int weight)
  • Method Details

    • contains

      boolean contains(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.