Reference
open class Reference<T>(referent: T?, var queue: ReferenceQueue<T>? = (ReferenceQueue.NULL as ReferenceQueue<T>?))
A simple mimic of java.lang.ref.Reference.
This version only stores a reference and an associated queue, and provides basic operations like get, clear, and enqueue. It ignores the underlying GC, native methods, and thread-handling logic.
Inheritors
Functions
Link copied to clipboard
Clears this reference and enqueues it in its associated ReferenceQueue, if any.