Class 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.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) V value  
      (package private) int weight  
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.