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, shortValuepublic IntWrapper()
public IntWrapper(int v)
v - value to wrappublic void add(int v)
v - value to addpublic double doubleValue()
doubleValue in class Numberpublic float floatValue()
floatValue in class Numberpublic int get()
public void increment()
public void set(int value)
value - specified integer valueCopyright © 2015. All Rights Reserved.