@NotThreadSafe public class MutableBigInteger extends AbstractMutableNumeric<MutableBigInteger>
BigInteger so that it can be passed a final
object but is mutable.| Constructor and Description |
|---|
MutableBigInteger(BigInteger aValue) |
MutableBigInteger(long nValue) |
MutableBigInteger(MutableBigInteger aOther) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MutableBigInteger rhs) |
BigInteger |
dec() |
BigInteger |
dec(BigInteger aDelta) |
BigInteger |
dec(long nDelta) |
BigInteger |
dec(MutableBigInteger aDelta) |
BigInteger |
divide(BigInteger aDivisor) |
BigInteger |
divide(long nDivisor) |
BigInteger |
divide(MutableBigInteger aDivisor) |
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. |
BigDecimal |
getAsBigDecimal() |
BigInteger |
getAsBigInteger() |
MutableBigInteger |
getClone() |
int |
hashCode() |
BigInteger |
inc()
Increment by 1 and return the modified value.
|
BigInteger |
inc(BigInteger aDelta) |
BigInteger |
inc(long nDelta) |
BigInteger |
inc(MutableBigInteger aDelta) |
int |
intValue()
Returns the value of the specified number as an
int, which may
involve rounding or truncation. |
boolean |
is0() |
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. |
BigInteger |
multiply(BigInteger aMultiplicand) |
BigInteger |
multiply(long nMultiplicand) |
BigInteger |
multiply(MutableBigInteger aMultiplicand) |
EChange |
set(BigInteger aValue) |
EChange |
set(long nDelta) |
EChange |
set(MutableBigInteger aValue) |
String |
toString() |
onAfterChangebyteValue, shortValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAsByte, getAsCharacter, getAsDouble, getAsFloat, getAsInteger, getAsLong, getAsShort, isNot0isEQ, isGE, isGT, isLE, isLT, isNEthisAsTbyteValue, shortValuepublic MutableBigInteger(long nValue)
public MutableBigInteger(@Nonnull MutableBigInteger aOther)
public MutableBigInteger(@Nonnull BigInteger aValue)
@Nonnull public BigDecimal getAsBigDecimal()
@Nonnull public BigInteger getAsBigInteger()
public double doubleValue()
INumberdouble, which may
involve rounding.doubleValue in interface INumberdoubleValue in class Numberdouble.public float floatValue()
INumberfloat, which may
involve rounding.floatValue in interface INumberfloatValue in class Numberfloat.public int intValue()
INumberint, which may
involve rounding or truncation.public long longValue()
INumberlong, which may
involve rounding or truncation.@Nonnull public BigInteger inc()
@Nonnull public BigInteger inc(long nDelta)
@Nonnull public BigInteger inc(@Nonnull MutableBigInteger aDelta)
@Nonnull public BigInteger inc(@Nonnull BigInteger aDelta)
@Nonnull public BigInteger dec()
@Nonnull public BigInteger dec(long nDelta)
@Nonnull public BigInteger dec(@Nonnull MutableBigInteger aDelta)
@Nonnull public BigInteger dec(@Nonnull BigInteger aDelta)
@Nonnull public BigInteger divide(long nDivisor)
@Nonnull public BigInteger divide(@Nonnull MutableBigInteger aDivisor)
@Nonnull public BigInteger divide(@Nonnull BigInteger aDivisor)
@Nonnull public BigInteger multiply(long nMultiplicand)
@Nonnull public BigInteger multiply(@Nonnull MutableBigInteger aMultiplicand)
@Nonnull public BigInteger multiply(@Nonnull BigInteger aMultiplicand)
@Nonnull public EChange set(@Nonnull MutableBigInteger aValue)
@Nonnull public EChange set(@Nonnull BigInteger aValue)
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 int compareTo(@Nonnull MutableBigInteger rhs)
@Nonnull public MutableBigInteger getClone()
Copyright © 2014–2020 Philip Helger. All rights reserved.