Class IdentityBasedWeakReference


  • public class IdentityBasedWeakReference
    extends java.lang.ref.WeakReference<java.lang.Object>
    Weak reference which can be used as a key of an identity-based map.
    • Constructor Summary

      Constructors 
      Constructor Description
      IdentityBasedWeakReference​(java.lang.Object referent, java.lang.ref.ReferenceQueue<java.lang.Object> referenceQueue)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      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
    • Constructor Detail

      • IdentityBasedWeakReference

        public IdentityBasedWeakReference​(java.lang.Object referent,
                                          java.lang.ref.ReferenceQueue<java.lang.Object> referenceQueue)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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