@NotThreadSafe public class MutableChar extends AbstractMutableInteger<MutableChar>
| Constructor and Description |
|---|
MutableChar(char cValue)
Initialize with a certain value.
|
MutableChar(Character aValue)
Initialize with a certain value.
|
MutableChar(int cValue)
Initialize with a certain int value.
|
MutableChar(MutableChar aOther) |
| Modifier and Type | Method and Description |
|---|---|
char |
charValue() |
int |
compareTo(MutableChar rhs) |
int |
dec() |
int |
dec(int nDelta) |
int |
dec(MutableChar aMC) |
double |
doubleValue()
Returns the value of the specified number as a
double, which may
involve rounding. |
boolean |
equals(Object o) |
float |
floatValue()
Returns the value of the specified number as a
float, which may
involve rounding. |
MutableChar |
getClone() |
int |
hashCode() |
int |
inc()
Increment by 1 and return the modified value.
|
int |
inc(int nDelta) |
int |
inc(MutableChar aMC) |
int |
intValue()
Returns the value of the specified number as an
int, which may
involve rounding or truncation. |
boolean |
is0() |
boolean |
isEven() |
boolean |
isGE0() |
boolean |
isGT0() |
boolean |
isLE0() |
boolean |
isLT0() |
long |
longValue()
Returns the value of the specified number as a
long, which may
involve rounding or truncation. |
EChange |
set(char cValue) |
EChange |
set(int cValue) |
EChange |
set(MutableChar aMC) |
String |
toString() |
onAfterChangebyteValue, shortValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitisOddgetAsBigDecimal, getAsBigInteger, getAsByte, getAsCharacter, getAsDouble, getAsFloat, getAsInteger, getAsLong, getAsShort, isNot0isEQ, isGE, isGT, isLE, isLT, isNEthisAsTbyteValue, shortValuepublic MutableChar(int cValue)
cValue - The value to be used.public MutableChar(@Nonnull Character aValue)
aValue - The value to be used.public MutableChar(char cValue)
cValue - The value to be used.public MutableChar(@Nonnull MutableChar aOther)
public char charValue()
public float floatValue()
INumberfloat, which may
involve rounding.floatValue in interface INumberfloatValue in class Numberfloat.public double doubleValue()
INumberdouble, which may
involve rounding.doubleValue in interface INumberdoubleValue in class Numberdouble.public int intValue()
INumberint, which may
involve rounding or truncation.public long longValue()
INumberlong, which may
involve rounding or truncation.public int inc()
public int inc(int nDelta)
public int inc(@Nonnull MutableChar aMC)
public int dec()
public int dec(int nDelta)
public int dec(@Nonnull MutableChar aMC)
@Nonnull public EChange set(@Nonnull MutableChar aMC)
public boolean is0()
true if the value is 0public boolean isLT0()
true if the value is < 0public boolean isLE0()
true if the value is ≤ 0public boolean isGT0()
true if the value is > 0public boolean isGE0()
true if the value is ≥ 0public boolean isEven()
true if the value is evenpublic int compareTo(@Nonnull MutableChar rhs)
@Nonnull public MutableChar getClone()
Copyright © 2014–2020 Philip Helger. All rights reserved.