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()
Referencenull.get in class Referencenull
if this reference object has been clearedReference.get()protected void set(Object value)
Referenceset in class ReferenceReference.set(java.lang.Object)Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.