Android Guides | Samples

Java.Lang.Ref Namespace




PhantomReferenceImplements a phantom reference, which is the weakest of the three types of references.
ReferenceProvides an abstract class which describes behavior common to all reference objects.
ReferenceQueueThe ReferenceQueue is the container on which reference objects are enqueued when the garbage collector detects the reachability type specified for the referent.
SoftReferenceA reference that is cleared when its referent is not strongly reachable and there is memory pressure.
WeakReferenceImplements a weak reference, which is the middle of the three types of references.