Package | Description |
---|---|
com.google.gwt.user.client.rpc.core.java.math | |
java.math |
Modifier and Type | Method and Description |
---|---|
static BigInteger |
BigInteger_CustomFieldSerializer.instantiate(SerializationStreamReader streamReader) |
BigInteger |
BigInteger_CustomFieldSerializer.instantiateInstance(SerializationStreamReader streamReader) |
Modifier and Type | Method and Description |
---|---|
static void |
BigInteger_CustomFieldSerializer.deserialize(SerializationStreamReader streamReader,
BigInteger instance) |
void |
BigInteger_CustomFieldSerializer.deserializeInstance(SerializationStreamReader streamReader,
BigInteger instance) |
static void |
BigInteger_CustomFieldSerializer.serialize(SerializationStreamWriter streamWriter,
BigInteger instance) |
void |
BigInteger_CustomFieldSerializer.serializeInstance(SerializationStreamWriter streamWriter,
BigInteger instance) |
Modifier and Type | Field and Description |
---|---|
static BigInteger |
BigInteger.ONE
The
BigInteger constant 1. |
static BigInteger |
BigInteger.TEN
The
BigInteger constant 10. |
static BigInteger |
BigInteger.ZERO
The
BigInteger constant 0. |
Modifier and Type | Method and Description |
---|---|
BigInteger |
BigInteger.abs()
Returns a (new)
BigInteger whose value is the absolute value of
this . |
BigInteger |
BigInteger.add(BigInteger val)
Returns a new
BigInteger whose value is this + val . |
BigInteger |
BigInteger.and(BigInteger val)
Returns a new
BigInteger whose value is this & val . |
BigInteger |
BigInteger.andNot(BigInteger val)
Returns a new
BigInteger whose value is this & ~val . |
BigInteger |
BigInteger.clearBit(int n)
Returns a new
BigInteger which has the same binary representation
as this but with the bit at position n cleared. |
BigInteger |
BigInteger.divide(BigInteger divisor)
Returns a new
BigInteger whose value is this / divisor . |
BigInteger[] |
BigInteger.divideAndRemainder(BigInteger divisor)
Returns a
BigInteger array which contains this / divisor at
index 0 and this % divisor at index 1. |
BigInteger |
BigInteger.flipBit(int n)
Returns a new
BigInteger which has the same binary representation
as this but with the bit at position n flipped. |
BigInteger |
BigInteger.gcd(BigInteger val)
Returns a new
BigInteger whose value is greatest common divisor of
this and val . |
BigInteger |
BigInteger.max(BigInteger val)
Returns the maximum of this
BigInteger and val . |
BigInteger |
BigInteger.min(BigInteger val)
Returns the minimum of this
BigInteger and val . |
BigInteger |
BigInteger.mod(BigInteger m)
Returns a new
BigInteger whose value is this mod m . |
BigInteger |
BigInteger.modInverse(BigInteger m)
Returns a new
BigInteger whose value is 1/this mod m . |
BigInteger |
BigInteger.modPow(BigInteger exponent,
BigInteger m)
Returns a new
BigInteger whose value is this^exponent mod m
. |
BigInteger |
BigInteger.multiply(BigInteger val)
Returns a new
BigInteger whose value is this * val . |
BigInteger |
BigInteger.negate()
Returns a new
BigInteger whose value is the -this . |
BigInteger |
BigInteger.nextProbablePrime()
Returns the smallest integer x >
this which is probably prime as a
BigInteger instance. |
BigInteger |
BigInteger.not()
Returns a new
BigInteger whose value is ~this . |
BigInteger |
BigInteger.or(BigInteger val)
Returns a new
BigInteger whose value is this | val . |
BigInteger |
BigInteger.pow(int exp)
Returns a new
BigInteger whose value is this ^ exp . |
static BigInteger |
BigInteger.probablePrime(int bitLength,
Random rnd)
Returns a random positive
BigInteger instance in the range [0,
2^(bitLength)-1] which is probably prime. |
BigInteger |
BigInteger.remainder(BigInteger divisor)
Returns a new
BigInteger whose value is this % divisor . |
BigInteger |
BigInteger.setBit(int n)
Returns a new
BigInteger which has the same binary representation
as this but with the bit at position n set. |
BigInteger |
BigInteger.shiftLeft(int n)
Returns a new
BigInteger whose value is this << n . |
BigInteger |
BigInteger.shiftRight(int n)
Returns a new
BigInteger whose value is this >> n . |
BigInteger |
BigInteger.subtract(BigInteger val)
Returns a new
BigInteger whose value is this - val . |
BigInteger |
BigDecimal.toBigInteger()
Returns this
BigDecimal as a big integer instance. |
BigInteger |
BigDecimal.toBigIntegerExact()
Returns this
BigDecimal as a big integer instance if it has no
fractional part. |
BigInteger |
BigDecimal.unscaledValue()
Returns the unscaled value (mantissa) of this
BigDecimal instance
as a BigInteger . |
static BigInteger |
BigInteger.valueOf(long val) |
BigInteger |
BigInteger.xor(BigInteger val)
Returns a new
BigInteger whose value is this ^ val . |
Modifier and Type | Method and Description |
---|---|
BigInteger |
BigInteger.add(BigInteger val)
Returns a new
BigInteger whose value is this + val . |
BigInteger |
BigInteger.and(BigInteger val)
Returns a new
BigInteger whose value is this & val . |
BigInteger |
BigInteger.andNot(BigInteger val)
Returns a new
BigInteger whose value is this & ~val . |
int |
BigInteger.compareTo(BigInteger val)
Compares this
BigInteger with val . |
BigInteger |
BigInteger.divide(BigInteger divisor)
Returns a new
BigInteger whose value is this / divisor . |
BigInteger[] |
BigInteger.divideAndRemainder(BigInteger divisor)
Returns a
BigInteger array which contains this / divisor at
index 0 and this % divisor at index 1. |
BigInteger |
BigInteger.gcd(BigInteger val)
Returns a new
BigInteger whose value is greatest common divisor of
this and val . |
BigInteger |
BigInteger.max(BigInteger val)
Returns the maximum of this
BigInteger and val . |
BigInteger |
BigInteger.min(BigInteger val)
Returns the minimum of this
BigInteger and val . |
BigInteger |
BigInteger.mod(BigInteger m)
Returns a new
BigInteger whose value is this mod m . |
BigInteger |
BigInteger.modInverse(BigInteger m)
Returns a new
BigInteger whose value is 1/this mod m . |
BigInteger |
BigInteger.modPow(BigInteger exponent,
BigInteger m)
Returns a new
BigInteger whose value is this^exponent mod m
. |
BigInteger |
BigInteger.multiply(BigInteger val)
Returns a new
BigInteger whose value is this * val . |
BigInteger |
BigInteger.or(BigInteger val)
Returns a new
BigInteger whose value is this | val . |
BigInteger |
BigInteger.remainder(BigInteger divisor)
Returns a new
BigInteger whose value is this % divisor . |
BigInteger |
BigInteger.subtract(BigInteger val)
Returns a new
BigInteger whose value is this - val . |
BigInteger |
BigInteger.xor(BigInteger val)
Returns a new
BigInteger whose value is this ^ val . |
Constructor and Description |
---|
BigDecimal(BigInteger val)
Constructs a new
BigDecimal instance from the given big integer
val . |
BigDecimal(BigInteger unscaledVal,
int scale)
Constructs a new
BigDecimal instance from a given unscaled value
unscaledVal and a given scale. |
BigDecimal(BigInteger unscaledVal,
int scale,
MathContext mc)
Constructs a new
BigDecimal instance from a given unscaled value
unscaledVal and a given scale. |
BigDecimal(BigInteger val,
MathContext mc)
Constructs a new
BigDecimal instance from the given big integer
val . |
Copyright © 2018. All rights reserved.