java.lang.ref
Class WeakReference<T>

java.lang.Object
  extended by java.lang.ref.Reference<T>
      extended by java.lang.ref.WeakReference<T>

public class WeakReference<T>
extends Reference<T>

Weak reference objects, which do not prevent their referents from being made finalizable, finalized, and then reclaimed. Weak references are most often used to implement canonicalizing mappings.


Field Summary
 
Fields inherited from class java.lang.ref.Reference
ref
 
Constructor Summary
WeakReference(T referent)
          Creates a new weak reference that refers to the given object.
 
Method Summary
 
Methods inherited from class java.lang.ref.Reference
clear, enqueue, get, isEnqueued
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeakReference

public WeakReference(T referent)
Creates a new weak reference that refers to the given object.

Parameters:
referent - object the new weak reference will refer to


Copyright © 2007 Sentilla Corporation. All Rights Reserved.