com.virtuosotechnologies.lib.util
Class ValueWrapper.StringWrapper

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

public static class ValueWrapper.StringWrapper
extends ValueWrapper

Wrapper object for a settable string 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.StringWrapper()
          Constructs a wrapper with null as the value
ValueWrapper.StringWrapper(String value)
          Constructs a wrapper with the given value
 
Method Summary
 String getValue()
          Returns the current value
 void setValue(String 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.StringWrapper

public ValueWrapper.StringWrapper(String value)
Constructs a wrapper with the given value

Parameters:
value - initial value

ValueWrapper.StringWrapper

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

Method Detail

getValue

public final String getValue()
Returns the current value

Returns:
value

setValue

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

Parameters:
value - new value