com.webmethods.caf.common
Class MutableInt

java.lang.Object
  extended by com.webmethods.caf.common.MutableInt
All Implemented Interfaces:
Serializable

public class MutableInt
extends Object
implements Serializable

Basics class to hold a mutable int with getters and setter methods.

See Also:
Serialized Form

Constructor Summary
MutableInt()
          Default constructor, does nothing
MutableInt(int value)
          Sets the mutable integer.
 
Method Summary
 int getValue()
          Returns the mutable integer
 void setValue(int value)
          Does same as MutableInt
 String toString()
          Returns the string representation of the mutable integer (just the integer value)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MutableInt

public MutableInt()
Default constructor, does nothing


MutableInt

public MutableInt(int value)
Sets the mutable integer.

Parameters:
value - returns mutable integer
Method Detail

getValue

public int getValue()
Returns the mutable integer

Returns:
integer mutable value

setValue

public void setValue(int value)
Does same as MutableInt

Parameters:
value - returns mutable integer

toString

public String toString()
Returns the string representation of the mutable integer (just the integer value)

Overrides:
toString in class Object