com.virtuosotechnologies.lib.util
Class ValueWrapper.IntWrapper

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

public static class ValueWrapper.IntWrapper
extends ValueWrapper

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

public ValueWrapper.IntWrapper(int value)
Constructs a wrapper with the given value

Parameters:
value - initial value

ValueWrapper.IntWrapper

public ValueWrapper.IntWrapper()
Constructs a wrapper with 0 as the value

Method Detail

getValue

public final int getValue()
Returns the current value

Returns:
value

setValue

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

Parameters:
value - new value