Class CleanerReference<T,​A>

    • Constructor Summary

      Constructors 
      Constructor Description
      CleanerReference​(T referent, A attachment, Reaper<T,​A> reaper)
      Construct a new instance with a reaper.
    • 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.PhantomReference

        get
      • Methods inherited from class java.lang.ref.Reference

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

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CleanerReference

        public CleanerReference​(T referent,
                                A attachment,
                                Reaper<T,​A> reaper)
        Construct a new instance with a reaper.
        Parameters:
        referent - the referent
        attachment - the attachment
        reaper - the reaper to use
    • Method Detail

      • hashCode

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

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