Home | History | Annotate | Download | only in ref

Lines Matching defs:Reference

33  * Abstract base class for reference objects.  This class defines the
34 * operations common to all reference objects. Because reference objects are
44 public abstract class Reference<T> {
54 * Slow path flag for the reference processor.
55 * Used by the reference processor to determine whether or not the referent
68 * This field forms a singly-linked list of reference objects that have
70 * reference has been enqueued. After this reference has been enqueued and
72 * to the next reference on the queue. The last reference on a queue
73 * points to itself. Once this reference has been removed from the
74 * reference queue, the queueNext field points to the
75 * ReferenceQueue.sQueueNextUnenqueued sentinel reference object for the
76 * rest of this reference's lifetime.
81 Reference queueNext;
90 Reference<?> pendingNext;
95 * Returns this reference object's referent. If this reference object has
99 * @return The object to which this reference refers, or
100 * <code>null</code> if this reference object has been cleared
110 * Clears this reference object. Invoking this method will not cause this
128 * Tells whether or not this reference object has been enqueued, either by
129 * the program or by the garbage collector. If this reference object was
133 * @return <code>true</code> if and only if this reference object has
138 // after this reference object has been removed from its queue
145 * Adds this reference object to the queue with which it is registered,
151 * @return <code>true</code> if this reference object was successfully
162 Reference(T referent) {
166 Reference(T referent, ReferenceQueue<? super T> queue) {
173 * Ensures that the object referenced by the given reference remains
197 * reference to an object will ever be stored in the heap: The garbage
230 * Reference.reachabilityFence(this);
244 * reference to this {@code Resource}. While probably overkill here,
263 * Reference.reachabilityFence(this);
278 * @param ref the reference. If {@code null}, this method has no effect.