add(BigInteger val) | Returns a BigInteger whose value is (this + val). |
abs() | Returns a BigInteger whose value is the absolute value of this BigInteger. |
and(BigInteger val) | Returns a BigInteger whose value is (this & val). |
andNot(BigInteger val) | Returns a BigInteger whose value is (this & ~val). |
bitCount() | Returns the number of bits in the two's complement representation of this BigInteger that differ from its sign bit. |
bitLength() | Returns the number of bits in the minimal two's-complement representation of this BigInteger, excluding a sign bit. |
byteValueExact() | Converts this BigInteger to a byte, checking for lost information. |
clearBit(int n) | Returns a BigInteger whose value is equivalent to this BigInteger with the designated bit cleared. |
compareTo(BigInteger val) | Compares this BigInteger with the specified BigInteger. |
divide(BigInteger val) | Returns a BigInteger whose value is (this / val). |
divideAndRemainder(BigInteger val) | Returns an array of two BigIntegers containing (this / val) followed by (this % val). |
doubleValue() | Converts this BigInteger to a double. |
equals(Object x) | Compares this BigInteger with the specified Object for equality. |
flipBit(int n) | Returns a BigInteger whose value is equivalent to this BigInteger with the designated bit flipped. |
floatValue() | Converts this BigInteger to a float. |
gcd(BigInteger val) | Returns a BigInteger whose value is the greatest common divisor of abs(this) and abs(val). |
getLowestSetBit() | Returns the index of the rightmost (lowest-order) one bit in this BigInteger (the number of zero bits to the right of the rightmost one bit). |
hashCode() | Returns the hash code for this BigInteger. |
intValue() | Converts this BigInteger to an int. |
intValueExact() | Converts this BigInteger to an int, checking for lost information. |
isProbablePrime(int certainty) | Returns true if this BigInteger is probably prime, false if it's definitely composite. |
longValue() | Converts this BigInteger to a long. |
longValueExact() | Converts this BigInteger to a long, checking for lost information. |
max(BigInteger val) | Returns the maximum of this BigInteger and val. |
min(BigInteger val) | Returns the minimum of this BigInteger and val. |
mod(BigInteger m | Returns a BigInteger whose value is (this mod m). |
modInverse(BigInteger m) | Returns a BigInteger whose value is (this-1 mod m). |
modPow(BigInteger exponent, BigInteger m | Returns a BigInteger whose value is (thisexponent mod m). |
multiply(BigInteger val) | Returns a BigInteger whose value is (this * val). |
negate() | Returns a BigInteger whose value is (-this). |
nextProbablePrime() | Returns the first integer greater than this BigInteger that is probably prime. |
not() | Returns a BigInteger whose value is (~this). |
or(BigInteger val) | Returns a BigInteger whose value is (this | val). |
pow(int exponent) | Returns a BigInteger whose value is (thisexponent). |
probablePrime(int bitLength, Random rnd) | Returns a positive BigInteger that is probably prime, with the specified bitLength. |
remainder(BigInteger val) | Returns a BigInteger whose value is (this % val). |
setBit(int n) | Returns a BigInteger whose value is equivalent to this BigInteger with the designated bit set. |
shiftLeft(int n) | Returns a BigInteger whose value is (this << n). |
shiftRight(int n) | Returns a BigInteger whose value is (this >> n). |
shortValueExact() | Converts this BigInteger to a short, checking for lost information. |
signum() | Returns the signum function of this BigInteger. |
sqrt() | Returns the integer square root of this BigInteger. |
sqrtAndRemainder() | Returns an array of two BigIntegers containing the integer square root s of this and its remainder this - s*s, respectively. |
subtract(BigInteger val) | Returns a BigInteger whose value is (this - val). |
testBit(int n) | Returns true if and only if the designated bit is set. |
toByteArray() | Returns a byte array containing the two's-complement representation of this BigInteger. |
toString() | Returns the decimal String representation of this BigInteger. |
toString(int radix) | Returns the string representation of this BigInteger in the given radix. |
valueOf(long val) | Returns a BigInteger whose value is equal to that of the specified long. |
xor(BigInteger val) | Returns a BigInteger whose value is (this ^ val). |