org.apache.tools.ant.util
Class WeakishReference
java.lang.Object
org.apache.tools.ant.util.WeakishReference
public abstract class WeakishReference
extends java.lang.Object
this is a weak reference on java1.2 and up, a hard
reference on java1.1
- ant1.6
createReference
public static WeakishReference createReference(Object object)
create the appropriate type of reference for the java version
object
-
- reference to the Object.
get
public Object get()
Returns this reference object's referent. If this reference object has
been cleared, then this method returns null
.
- The object to which this reference refers, or
null
if this reference object has been cleared
Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.