|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Number
org.onemind.commons.java.lang.MutableInteger
public class MutableInteger
An mutable integer
Field Summary | |
---|---|
private int |
_value
the integer value * |
Constructor Summary | |
---|---|
MutableInteger(int l)
|
Method Summary | |
---|---|
byte |
byteValue()
|
void |
dec(int i)
decrease by i |
double |
doubleValue()
|
float |
floatValue()
|
void |
inc(int i)
increase by i |
int |
intValue()
|
long |
longValue()
|
void |
set(int l)
Set the value |
short |
shortValue()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int _value
Constructor Detail |
---|
public MutableInteger(int l)
l
- the int valueMethod Detail |
---|
public final void set(int l)
l
- the int valuepublic final byte byteValue()
byteValue
in class java.lang.Number
public final double doubleValue()
doubleValue
in class java.lang.Number
public final float floatValue()
floatValue
in class java.lang.Number
public final int intValue()
intValue
in class java.lang.Number
public final long longValue()
longValue
in class java.lang.Number
public final short shortValue()
shortValue
in class java.lang.Number
public void inc(int i)
i
- the value to increasepublic void dec(int i)
i
- the value to decreasepublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |