com.virtuosotechnologies.lib.util
Class ValueWrapper.ObjectWrapper

java.lang.Object
  extended bycom.virtuosotechnologies.lib.util.ValueWrapper
      extended bycom.virtuosotechnologies.lib.util.ValueWrapper.ObjectWrapper
Enclosing class:
ValueWrapper

public static class ValueWrapper.ObjectWrapper
extends ValueWrapper

Wrapper object for a settable object value. Useful for passing objects out of anonymous callbacks.


Nested Class Summary
 
Nested classes inherited from class com.virtuosotechnologies.lib.util.ValueWrapper
ValueWrapper.BooleanWrapper, ValueWrapper.IntWrapper, ValueWrapper.ObjectWrapper, ValueWrapper.StringWrapper
 
Constructor Summary
ValueWrapper.ObjectWrapper()
          Constructs a wrapper with null as the value
ValueWrapper.ObjectWrapper(Object value)
          Constructs a wrapper with the given value
 
Method Summary
 Object getValue()
          Returns the current value
 void setValue(Object value)
          Sets the current value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueWrapper.ObjectWrapper

public ValueWrapper.ObjectWrapper(Object value)
Constructs a wrapper with the given value

Parameters:
value - initial value

ValueWrapper.ObjectWrapper

public ValueWrapper.ObjectWrapper()
Constructs a wrapper with null as the value

Method Detail

getValue

public final Object getValue()
Returns the current value

Returns:
value

setValue

public final void setValue(Object value)
Sets the current value

Parameters:
value - new value