|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.tudelft.simulation.event.ref.Reference<T>
nl.tudelft.simulation.event.ref.WeakReference<T>
T - the type of the referencepublic class WeakReference<T>
A WeakReference. The weakreference extends the
java.lang.ref.WeakReference and besides implementing the
Reference interface no changes are defined.
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl/event
License of use: Lesser
General Public License (LGPL) , no warranty
| Constructor Summary | |
|---|---|
WeakReference(T referent)
Creates a new weak reference that refers to the given object. |
|
| Method Summary | |
|---|---|
T |
get()
Returns this reference object's referent. |
protected void |
set(T value)
sets the value of the reference |
| 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 to| Method Detail |
|---|
public T get()
Referencenull.
get in class Reference<T>null
if this reference object has been clearedReference.get()protected void set(T value)
Reference
set in class Reference<T>value - the value to setReference.set(java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||