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