util
Class MutableReference<T>

java.lang.Object
  extended by util.MutableReference<T>
Type Parameters:
T -

public class MutableReference<T>
extends Object

Object wrapper around a reference


Constructor Summary
MutableReference()
          Creates a new null reference
MutableReference(T value)
          Creates a new reference with the given value
 
Method Summary
 T get()
           
 void set(T value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MutableReference

public MutableReference()
Creates a new null reference


MutableReference

public MutableReference(T value)
Creates a new reference with the given value

Parameters:
value - the value
Method Detail

get

public T get()

set

public void set(T value)

toString

public String toString()
Overrides:
toString in class Object