|
Préférences
Moteurs de recherche
|
||||||||||
| JavaTM 2 Platform Std. Ed. v1.6.0
java.lang.ref
|
|||||||||||
| Constructor Summary | |
|---|---|
WeakReference(T referent)
Creates a new weak reference that refers to the given object. |
|
WeakReference(T referent,
ReferenceQueue<? super T> q)
Creates a new weak reference that refers to the given object and is registered with the given queue. |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.ref.Reference |
|---|
clear, enqueue, get, isEnqueued |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WeakReference(T referent)
referent - object the new weak reference will refer topublic WeakReference(T referent, ReferenceQueue<? super T> q)
referent - object the new weak reference will refer toq - the queue with which the reference is to be registered,
or null if registration is not required