@GwtCompatible
public class BigIntegerExtensions
extends java.lang.Object
big integral numbers
.Constructor and Description |
---|
BigIntegerExtensions() |
Modifier and Type | Method and Description |
---|---|
static java.math.BigInteger |
operator_divide(java.math.BigInteger a,
java.math.BigInteger b)
The binary
divide operator. |
static java.math.BigInteger |
operator_minus(java.math.BigInteger a)
The unary
minus operator. |
static java.math.BigInteger |
operator_minus(java.math.BigInteger a,
java.math.BigInteger b)
The binary
minus operator. |
static java.math.BigInteger |
operator_modulo(java.math.BigInteger a,
java.math.BigInteger b)
The binary
modulo operator. |
static java.math.BigInteger |
operator_multiply(java.math.BigInteger a,
java.math.BigInteger b)
The binary
times operator. |
static java.math.BigInteger |
operator_plus(java.math.BigInteger a,
java.math.BigInteger b)
The binary
plus operator. |
static java.math.BigInteger |
operator_power(java.math.BigInteger a,
int exponent)
The
power operator. |
@Pure public static java.math.BigInteger operator_minus(java.math.BigInteger a)
minus
operator.a
- a BigInteger. May not be null
.-a
java.lang.NullPointerException
- if a
is null
.@Pure public static java.math.BigInteger operator_plus(java.math.BigInteger a, java.math.BigInteger b)
plus
operator.a
- a BigInteger. May not be null
.b
- a BigInteger. May not be null
.a.add(b)
java.lang.NullPointerException
- if a
or b
is null
.@Pure public static java.math.BigInteger operator_minus(java.math.BigInteger a, java.math.BigInteger b)
minus
operator.a
- a BigInteger. May not be null
.b
- a BigInteger. May not be null
.a.subtract(b)
java.lang.NullPointerException
- if a
or b
is null
.@Pure public static java.math.BigInteger operator_power(java.math.BigInteger a, int exponent)
power
operator.a
- a BigInteger. May not be null
.exponent
- the exponent.a.pow(b)
java.lang.NullPointerException
- if a
null
.@Pure public static java.math.BigInteger operator_multiply(java.math.BigInteger a, java.math.BigInteger b)
times
operator.a
- a BigInteger. May not be null
.b
- a BigInteger. May not be null
.a.multiply(b)
java.lang.NullPointerException
- if a
or b
is null
.@Pure public static java.math.BigInteger operator_divide(java.math.BigInteger a, java.math.BigInteger b)
divide
operator.a
- a BigInteger. May not be null
.b
- a BigInteger. May not be null
.a.divide(b)
java.lang.NullPointerException
- if a
or b
is null
.@Pure public static java.math.BigInteger operator_modulo(java.math.BigInteger a, java.math.BigInteger b)
modulo
operator.a
- a BigInteger. May not be null
.b
- a BigInteger. May not be null
.a.mod(b)
java.lang.NullPointerException
- if a
or b
is null
.