@NotThreadSafe public final class MutableBigInteger extends Number implements IMutableNumeric<MutableBigInteger>
BigInteger so that it can be passed a final
object but is mutable.| Modifier and Type | Field and Description |
|---|---|
static BigInteger |
DEFAULT_VALUE
The default value if the default constructor is used.
|
| Constructor and Description |
|---|
MutableBigInteger()
Initialize with default value
|
MutableBigInteger(BigInteger aValue) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MutableBigInteger rhs) |
BigInteger |
dec() |
BigInteger |
dec(BigInteger aDelta) |
double |
doubleValue() |
boolean |
equals(Object o) |
float |
floatValue() |
BigInteger |
getAsBigInteger() |
Double |
getAsDouble() |
MutableBigInteger |
getClone() |
int |
hashCode() |
BigInteger |
inc()
Increment by 1 and return the modified value.
|
BigInteger |
inc(BigInteger aDelta) |
int |
intValue() |
boolean |
is0() |
boolean |
isGreater0() |
boolean |
isGreaterOrEqual0() |
boolean |
isNot0() |
boolean |
isSmaller0() |
boolean |
isSmallerOrEqual0() |
long |
longValue() |
EChange |
set(BigInteger aValue) |
String |
toString() |
byteValue, shortValuepublic static final BigInteger DEFAULT_VALUE
public MutableBigInteger()
public MutableBigInteger(@Nonnull BigInteger aValue)
@Nonnull public BigInteger getAsBigInteger()
public double doubleValue()
doubleValue in class Numberpublic float floatValue()
floatValue in class Number@Nonnull public BigInteger inc()
@Nonnull public BigInteger inc(@Nonnull BigInteger aDelta)
@Nonnull public BigInteger dec()
@Nonnull public BigInteger dec(@Nonnull BigInteger aDelta)
@Nonnull public EChange set(@Nonnull BigInteger aValue)
public boolean is0()
is0 in interface IMutableNumeric<MutableBigInteger>true if the value is 0public boolean isNot0()
isNot0 in interface IMutableNumeric<MutableBigInteger>true if the value is not 0public boolean isSmaller0()
isSmaller0 in interface IMutableNumeric<MutableBigInteger>true if the value is < 0public boolean isSmallerOrEqual0()
isSmallerOrEqual0 in interface IMutableNumeric<MutableBigInteger>true if the value is ≤ 0public boolean isGreater0()
isGreater0 in interface IMutableNumeric<MutableBigInteger>true if the value is > 0public boolean isGreaterOrEqual0()
isGreaterOrEqual0 in interface IMutableNumeric<MutableBigInteger>true if the value is ≥ 0public int compareTo(@Nonnull MutableBigInteger rhs)
compareTo in interface Comparable<MutableBigInteger>@Nonnull public MutableBigInteger getClone()
getClone in interface ICloneable<MutableBigInteger>Copyright © 2006–2014 phloc systems. All rights reserved.