Class ConcurrentIdentityWeakKeyHashMap.WeakKeyReference<K>

  • Enclosing class:
    ConcurrentIdentityWeakKeyHashMap<K,​V>

    static final class ConcurrentIdentityWeakKeyHashMap.WeakKeyReference<K>
    extends java.lang.ref.WeakReference<K>
    A weak-key reference which stores the key hash needed for reclamation.
    • Field Summary

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

      Constructors 
      Constructor Description
      WeakKeyReference​(K key, int hash, java.lang.ref.ReferenceQueue<java.lang.Object> refQueue)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int keyHash()  
      java.lang.Object keyRef()  
      • Methods inherited from class java.lang.ref.Reference

        clear, enqueue, get, isEnqueued
      • Methods inherited from class java.lang.Object

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

      • hash

        final int hash
    • Constructor Detail

      • WeakKeyReference

        WeakKeyReference​(K key,
                         int hash,
                         java.lang.ref.ReferenceQueue<java.lang.Object> refQueue)
    • Method Detail

      • keyHash

        public int keyHash()
      • keyRef

        public java.lang.Object keyRef()