|
CDC 1.1.2 | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||
| Packages that use BigInteger | |
| java.math | Provides classes for performing arbitrary-precision integer arithmetic (BigInteger) and arbitrary-precision decimal arithmetic (BigDecimal). |
| Uses of BigInteger in java.math |
| Fields in java.math declared as BigInteger | |
static BigInteger |
BigInteger.ZERO
The BigInteger constant zero. |
static BigInteger |
BigInteger.ONE
The BigInteger constant one. |
| Methods in java.math that return BigInteger | |
static BigInteger |
BigInteger.valueOf(long val)
Returns a BigInteger whose value is equal to that of the specified long. |
BigInteger |
BigInteger.add(BigInteger val)
Returns a BigInteger whose value is (this + val). |
BigInteger |
BigInteger.subtract(BigInteger val)
Returns a BigInteger whose value is (this - val). |
BigInteger |
BigInteger.multiply(BigInteger val)
Returns a BigInteger whose value is (this * val). |
BigInteger |
BigInteger.divide(BigInteger val)
Returns a BigInteger whose value is (this / val). |
BigInteger[] |
BigInteger.divideAndRemainder(BigInteger val)
Returns an array of two BigIntegers containing (this / val) followed by (this % val). |
BigInteger |
BigInteger.remainder(BigInteger val)
Returns a BigInteger whose value is (this % val). |
BigInteger |
BigInteger.pow(int exponent)
Returns a BigInteger whose value is (thisexponent). |
BigInteger |
BigInteger.gcd(BigInteger val)
Returns a BigInteger whose value is the greatest common divisor of abs(this) and abs(val). |
BigInteger |
BigInteger.abs()
Returns a BigInteger whose value is the absolute value of this BigInteger. |
BigInteger |
BigInteger.negate()
Returns a BigInteger whose value is (-this). |
BigInteger |
BigInteger.mod(BigInteger m)
Returns a BigInteger whose value is (this mod m). |
BigInteger |
BigInteger.modPow(BigInteger exponent,
BigInteger m)
Returns a BigInteger whose value is (thisexponent mod m). |
BigInteger |
BigInteger.modInverse(BigInteger m)
Returns a BigInteger whose value is (this-1 mod m). |
BigInteger |
BigInteger.shiftLeft(int n)
Returns a BigInteger whose value is (this << n). |
BigInteger |
BigInteger.shiftRight(int n)
Returns a BigInteger whose value is (this >> n). |
BigInteger |
BigInteger.and(BigInteger val)
Returns a BigInteger whose value is (this & val). |
BigInteger |
BigInteger.or(BigInteger val)
Returns a BigInteger whose value is (this | val). |
BigInteger |
BigInteger.xor(BigInteger val)
Returns a BigInteger whose value is (this ^ val). |
BigInteger |
BigInteger.not()
Returns a BigInteger whose value is (~this). |
BigInteger |
BigInteger.andNot(BigInteger val)
Returns a BigInteger whose value is (this & ~val). |
BigInteger |
BigInteger.setBit(int n)
Returns a BigInteger whose value is equivalent to this BigInteger with the designated bit set. |
BigInteger |
BigInteger.clearBit(int n)
Returns a BigInteger whose value is equivalent to this BigInteger with the designated bit cleared. |
BigInteger |
BigInteger.flipBit(int n)
Returns a BigInteger whose value is equivalent to this BigInteger with the designated bit flipped. |
BigInteger |
BigInteger.min(BigInteger val)
Returns the minimum of this BigInteger and val. |
BigInteger |
BigInteger.max(BigInteger val)
Returns the maximum of this BigInteger and val. |
| Methods in java.math with parameters of type BigInteger | |
BigInteger |
BigInteger.add(BigInteger val)
Returns a BigInteger whose value is (this + val). |
BigInteger |
BigInteger.subtract(BigInteger val)
Returns a BigInteger whose value is (this - val). |
BigInteger |
BigInteger.multiply(BigInteger val)
Returns a BigInteger whose value is (this * val). |
BigInteger |
BigInteger.divide(BigInteger val)
Returns a BigInteger whose value is (this / val). |
BigInteger[] |
BigInteger.divideAndRemainder(BigInteger val)
Returns an array of two BigIntegers containing (this / val) followed by (this % val). |
BigInteger |
BigInteger.remainder(BigInteger val)
Returns a BigInteger whose value is (this % val). |
BigInteger |
BigInteger.gcd(BigInteger val)
Returns a BigInteger whose value is the greatest common divisor of abs(this) and abs(val). |
BigInteger |
BigInteger.mod(BigInteger m)
Returns a BigInteger whose value is (this mod m). |
BigInteger |
BigInteger.modPow(BigInteger exponent,
BigInteger m)
Returns a BigInteger whose value is (thisexponent mod m). |
BigInteger |
BigInteger.modInverse(BigInteger m)
Returns a BigInteger whose value is (this-1 mod m). |
BigInteger |
BigInteger.and(BigInteger val)
Returns a BigInteger whose value is (this & val). |
BigInteger |
BigInteger.or(BigInteger val)
Returns a BigInteger whose value is (this | val). |
BigInteger |
BigInteger.xor(BigInteger val)
Returns a BigInteger whose value is (this ^ val). |
BigInteger |
BigInteger.andNot(BigInteger val)
Returns a BigInteger whose value is (this & ~val). |
int |
BigInteger.compareTo(BigInteger val)
Compares this BigInteger with the specified BigInteger. |
BigInteger |
BigInteger.min(BigInteger val)
Returns the minimum of this BigInteger and val. |
BigInteger |
BigInteger.max(BigInteger val)
Returns the maximum of this BigInteger and val. |
|
CDC 1.1.2 | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||