com.mindfusion.common
Class ByRef<T>

java.lang.Object
  extended by com.mindfusion.common.ByRef<T>

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

Allows using "by reference" value type parameters.


Constructor Summary
ByRef()
          Initializes a new ByRef instance.
ByRef(T value)
          Initializes a new ByRef instance.
 
Method Summary
 T get()
          Gets the parameter value.
 T set(T value)
          Sets the parameter value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByRef

public ByRef()
Initializes a new ByRef instance.


ByRef

public ByRef(T value)
Initializes a new ByRef instance.

Parameters:
value - The initial parameter value.
Method Detail

get

public T get()
Gets the parameter value.

Returns:
The value returned through this parameter.

set

public T set(T value)
Sets the parameter value.

Parameters:
value - The new parameter value.