Package-level declarations
Types
A weak reference used by ReferenceQueueRetainedObjectTracker to determine which objects become weakly reachable and which don't. ReferenceQueueRetainedObjectTracker uses key to keep track of KeyedWeakReference instances that haven't made it into the associated ReferenceQueue yet.
Listener used by ReferenceQueueRetainedObjectTracker to report retained objects.
ReferenceQueueRetainedObjectTracker can be passed objects to expectDeletionOnTriggerFor. It will create KeyedWeakReference instances that reference tracked objects, and check if those references have been cleared as expected. If not, these objects are considered retained and ReferenceQueueRetainedObjectTracker will then notify registered OnObjectRetainedListeners. ReferenceQueueRetainedObjectTracker is thread safe.
Helper util for tracking retained objects.
Tracks deletion of target objects, marking them retained on trigger.
An interface to abstract the clock to get the system uptime.
Functions
Creates a wrapper around DeletableObjectReporter that will run any instance of T by apply to decide whether to forward to DeletableObjectReporter.expectDeletionFor calls. Objects that do not extend T will always be forwarded.