public class MutableInteger extends Object
| Constructor and Description |
|---|
MutableInteger(int value)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
add(int add)
Add the given value and return the value after the addition.
|
int |
dec()
Decrement the value and return the value after decrementation.
|
int |
get() |
int |
inc()
Increment the value and return the value after incrementation.
|
void |
set(int value) |
int |
sub(int add)
Subtract the given value and return the value after the subtraction.
|
public int get()
public void set(int value)
public int inc()
public int dec()
public int add(int add)
public int sub(int add)
Copyright © 2019. All rights reserved.