public class MutableInteger
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
value
Value
|
Constructor and Description |
---|
MutableInteger()
Default constructor.
|
MutableInteger(int value)
Constructor which sets an initial value.
|
Modifier and Type | Method and Description |
---|---|
int |
get()
Get the current value.
|
void |
set(int value)
Set the current value.
|
java.lang.String |
toString()
Return a string representation of the value for debugging purposes.
|
public MutableInteger()
public MutableInteger(int value)
value
- Initial value.public int get()
public void set(int value)
public java.lang.String toString()
toString
in class java.lang.Object