org.graffiti.util
Class Reference<T>

java.lang.Object
  extended by org.graffiti.util.Reference<T>

public class Reference<T>
extends Object

Holds a reference to an object of type T.

Version:
$Revision$ $Date$
Author:
Andreas Gleißner

Constructor Summary
Reference()
          Creates a new Reference initially referencing null.
Reference(T t)
          Creates a new Reference initially referencing t .
 
Method Summary
 T get()
          Returns the referenced object.
 void set(T t)
          Sets the referenced object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reference

public Reference()
Creates a new Reference initially referencing null.


Reference

public Reference(T t)
Creates a new Reference initially referencing t .

Parameters:
t - the referenced object.
Method Detail

get

public T get()
Returns the referenced object.

Returns:
the referenced object.

set

public void set(T t)
Sets the referenced object.

Parameters:
t - the referenced object. May be null.


Generated at 2012-05-30 11:00:14 PM CEST