mascoptDev.utils
Class MutableInteger

java.lang.Object
  |
  +--mascoptDev.utils.MutableInteger

public class MutableInteger
extends Object

Author:
fpeix

Constructor Summary
MutableInteger(int value)
          Constructor
MutableInteger(String stringValue)
          Constructor
 
Method Summary
 void add(int value)
          Add an int to this MuatbleInteger
 void add(Integer value)
          Add an Integer to this MuatbleInteger
 void add(MutableInteger value)
          Add a MutableInteger to this MutableInteger
 int intValue()
          Returns the value of this MutableInteger as int
 long longValue()
          Returns the value of this MutableInteger as long
 void minus(int value)
          Substract an int to this MutableInteger
 void minus(Integer value)
          Substract an Integer to this MutableInteger
 void minus(MutableInteger value)
          Substract an MutableInteger to this MutableInteger
 void setIntValue(int value)
          Changes the value of this MutableInteger
 void setIntValue(Integer value)
          Changes the value of this MutableInteger
 void setIntValue(MutableInteger value)
          Changes the value of this MutableInteger
 short shortValue()
          Returns the value of this MutableInteger as short
 String toString()
          Returns a String object representing this MutableInteger's value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MutableInteger

public MutableInteger(int value)
Constructor

Parameters:
value - The value of the integer

MutableInteger

public MutableInteger(String stringValue)
Constructor

Method Detail

intValue

public int intValue()
Returns the value of this MutableInteger as int

Returns:

setIntValue

public void setIntValue(int value)
Changes the value of this MutableInteger

Parameters:
value - The new value of the MutableInteger

setIntValue

public void setIntValue(Integer value)
Changes the value of this MutableInteger

Parameters:
value - The new value of the MutableInteger

setIntValue

public void setIntValue(MutableInteger value)
Changes the value of this MutableInteger

Parameters:
value - The new value of the MutableInteger

add

public void add(int value)
Add an int to this MuatbleInteger

Parameters:
value - The int to add

add

public void add(Integer value)
Add an Integer to this MuatbleInteger

Parameters:
value - The Integer to add

add

public void add(MutableInteger value)
Add a MutableInteger to this MutableInteger

Parameters:
value - The MutableInteger to add

minus

public void minus(int value)
Substract an int to this MutableInteger

Parameters:
value -

minus

public void minus(Integer value)
Substract an Integer to this MutableInteger

Parameters:
value -

minus

public void minus(MutableInteger value)
Substract an MutableInteger to this MutableInteger

Parameters:
value -

longValue

public long longValue()
Returns the value of this MutableInteger as long

Returns:

shortValue

public short shortValue()
Returns the value of this MutableInteger as short

Returns:

toString

public String toString()
Returns a String object representing this MutableInteger's value.

Overrides:
toString in class Object
Returns: