@NotThreadSafe public class MutableBigInteger extends AbstractMutableNumeric<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
DEFAULT_VALUE |
MutableBigInteger(BigInteger aValue) |
MutableBigInteger(long nValue) |
MutableBigInteger(MutableBigInteger aOther) |
getAsByte, getAsCharacter, getAsDouble, getAsFloat, getAsInteger, getAsLong, getAsShort, onAfterChangebyteValue, shortValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitisNot0isEqualTo, isGreaterOrEqualThan, isGreaterThan, isLowerOrEqualThan, isLowerThanthisAsTpublic static final BigInteger DEFAULT_VALUE
public MutableBigInteger()
DEFAULT_VALUEpublic MutableBigInteger(long nValue)
public MutableBigInteger(@Nonnull MutableBigInteger aOther)
public MutableBigInteger(@Nonnull BigInteger aValue)
@Nonnull public BigDecimal getAsBigDecimal()
getAsBigDecimal in interface IMutableNumeric<MutableBigInteger>getAsBigDecimal in class AbstractMutableNumeric<MutableBigInteger>@Nonnull public BigInteger getAsBigInteger()
getAsBigInteger in interface IMutableNumeric<MutableBigInteger>getAsBigInteger in class AbstractMutableNumeric<MutableBigInteger>public double doubleValue()
doubleValue in class Numberpublic float floatValue()
floatValue in class Number@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 isSmaller0()
true if the value is < 0public boolean isSmallerOrEqual0()
true if the value is ≤ 0public boolean isGreater0()
true if the value is > 0public boolean isGreaterOrEqual0()
true if the value is ≥ 0public int compareTo(@Nonnull MutableBigInteger rhs)
@Nonnull public MutableBigInteger getClone()
Copyright © 2014–2017 Philip Helger. All rights reserved.