public class MutableInt extends Number implements Comparable<MutableInt>, Mutable<Number>
| Constructor and Description |
|---|
MutableInt() |
MutableInt(int value) |
MutableInt(Number value) |
MutableInt(String value) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int i) |
void |
add(Number i) |
int |
addAndGet(int i) |
int |
addAndGet(Number i) |
byte |
byteValue() |
int |
compareTo(MutableInt other) |
static MutableInt |
create() |
void |
decrement() |
int |
decrementAndGet() |
double |
doubleValue() |
boolean |
equals(Object obj) |
float |
floatValue() |
Integer |
get()
获取值
|
int |
getAndAdd(int i) |
int |
getAndAdd(Number i) |
int |
getAndDecrement() |
int |
getAndIncrement() |
int |
hashCode() |
void |
increment() |
int |
incrementAndGet() |
int |
intValue() |
long |
longValue() |
static MutableInt |
of(int value) |
void |
set(Number value)
设置值
|
void |
setValue(int value) |
short |
shortValue() |
void |
subtract(int i) |
void |
subtract(Number i) |
Integer |
toInteger() |
String |
toString() |
public MutableInt()
public MutableInt(int value)
public MutableInt(Number value)
public MutableInt(String value)
public static MutableInt create()
public static MutableInt of(int value)
public void setValue(int value)
public void increment()
public int getAndIncrement()
public int incrementAndGet()
public void decrement()
public int getAndDecrement()
public int decrementAndGet()
public void add(int i)
public void add(Number i)
public void subtract(int i)
public void subtract(Number i)
public int addAndGet(int i)
public int addAndGet(Number i)
public int getAndAdd(int i)
public int getAndAdd(Number i)
public Integer toInteger()
public short shortValue()
shortValue in class Numberpublic float floatValue()
floatValue in class Numberpublic double doubleValue()
doubleValue in class Numberpublic int compareTo(MutableInt other)
compareTo in interface Comparable<MutableInt>Copyright © 2025. All rights reserved.