nl.tudelft.simulation.event.ref
Interface Reference

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
StrongReference, WeakReference

public interface Reference
extends java.io.Serializable

A Reference interface defining the indirect pointer access to an object.

(c) copyright 2003 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public License (GPL) , no warranty

Since:
1.2
Version:
1.2 2004-03-18
Author:
Peter Jacobs
See Also:
Reference

Method Summary
 java.lang.Object get()
          Returns this reference object's referent.
 

Method Detail

get

public java.lang.Object get()
Returns this reference object's referent. If this reference object has been cleared, either by the program or by the garbage collector, then this method returns null.

Returns:
The object to which this reference refers, or null if this reference object has been cleared


Copyright © 2002-2004 Delft University of Technology, the Netherlands. All Rights Reserved.