com.virtuosotechnologies.lib.util
Class ValueWrapper.BooleanWrapper

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

public static class ValueWrapper.BooleanWrapper
extends ValueWrapper

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

public ValueWrapper.BooleanWrapper(boolean value)
Constructs a wrapper with the given value

Parameters:
value - initial value

ValueWrapper.BooleanWrapper

public ValueWrapper.BooleanWrapper()
Constructs a wrapper with false as the value

Method Detail

getValue

public final boolean getValue()
Returns the current value

Returns:
value

setValue

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

Parameters:
value - new value