public final class IntWrapper extends Number
Constructor and Description |
---|
IntWrapper()
Constructor: value set to 0.
|
IntWrapper(int v)
Construction: value set to provided argument.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int v)
add the provided value to the integer
|
double |
doubleValue() |
float |
floatValue() |
int |
get() |
void |
increment()
add 1 to the integer value
|
int |
intValue() |
long |
longValue() |
void |
set(int value)
Set the value to that of the specified integer.
|
String |
toString() |
byteValue, shortValue
public IntWrapper()
public IntWrapper(int v)
v
- value to wrappublic void add(int v)
v
- value to addpublic double doubleValue()
doubleValue
in class Number
public float floatValue()
floatValue
in class Number
public int get()
public void increment()
public void set(int value)
value
- specified integer valueCopyright © 2014. All Rights Reserved.