Class WeakConcurrentMap.WeakKey<T>

  • Enclosing class:
    WeakConcurrentMap<K,​V>

    private static class WeakConcurrentMap.WeakKey<T>
    extends java.lang.ref.WeakReference<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int hashCode  
    • Constructor Summary

      Constructors 
      Constructor Description
      WeakKey​(T key, java.lang.ref.ReferenceQueue<? super T> queue)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      int hashCode()  
      • Methods inherited from class java.lang.ref.Reference

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

        finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • hashCode

        private final int hashCode
    • Constructor Detail

      • WeakKey

        WeakKey​(T key,
                java.lang.ref.ReferenceQueue<? super T> queue)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object