public class WeakReference extends Reference
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 and Description |
---|
WeakReference(Object referent)
Creates a new weak reference that refers to the given object.
|
public WeakReference(Object referent)
referent
- object the new weak reference will refer topublic Object get()
Reference
null
.get
in class Reference
null
if this reference object has been clearedReference.get()
protected void set(Object value)
Reference
set
in class Reference
Reference.set(java.lang.Object)
Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.