org.openanzo.util
Class Ref<T>

java.lang.Object
  extended by org.openanzo.util.Ref<T>
Type Parameters:
T - Type of object to which this reference is pointing

public class Ref<T>
extends java.lang.Object

Reference class

Author:
Lee Feigenbaum ( feigenbl@us.ibm.com )

Constructor Summary
Ref(T v)
          Create a new reference for v
 
Method Summary
 T getValue()
          Get the referenced value
 void setValue(T v)
          Set the referenced value
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ref

public Ref(T v)
Create a new reference for v

Parameters:
v - value to reference
Method Detail

setValue

public void setValue(T v)
Set the referenced value

Parameters:
v - referenced value

getValue

public T getValue()
Get the referenced value

Returns:
the referenced value


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.