|
Préférences
Moteurs de recherche
|
||||||||
| JavaTM 2 Platform Std. Ed. v1.4.2
java.lang.ref
|
|||||||||
| Constructor Summary | |
WeakReference(Object referent)
Creates a new weak reference that refers to the given object. |
|
WeakReference(Object referent,
ReferenceQueue q)
Creates a new weak reference that refers to the given object and is registered with the given queue. |
|
| 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(Object referent)
referent - object the new weak reference will refer topublic WeakReference(Object referent, ReferenceQueue q)
referent - object the new weak reference will refer toq - queue the weak reference is registered with
NullPointerException - If the queue argument
is null