de.intarsys.tools.valueholder
Class ObjectValueHolder<T>

java.lang.Object
  extended by de.intarsys.tools.valueholder.ObjectValueHolder<T>
All Implemented Interfaces:
IValueHolder<T>

public class ObjectValueHolder<T>
extends java.lang.Object
implements IValueHolder<T>


Constructor Summary
ObjectValueHolder(T value)
           
 
Method Summary
 T get()
          Dereference the IValueHolder.
 T set(T newValue)
          Assign a new value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectValueHolder

public ObjectValueHolder(T value)
Method Detail

get

public T get()
Description copied from interface: IValueHolder
Dereference the IValueHolder.

Specified by:
get in interface IValueHolder<T>
Returns:
The referenced object.

set

public T set(T newValue)
Description copied from interface: IValueHolder
Assign a new value.

Specified by:
set in interface IValueHolder<T>
Returns:
The previous value (optional)