public class BigInteger extends Number implements Comparable, Serializable
Modifier and Type | Field and Description |
---|---|
static BigInteger |
ONE |
static BigInteger |
ZERO |
Constructor and Description |
---|
BigInteger(byte[] val) |
BigInteger(int signum,
byte[] magnitude) |
BigInteger(int bitLength,
int certainty,
Random rnd) |
BigInteger(int numBits,
Random rnd) |
BigInteger(String val) |
BigInteger(String val,
int radix) |
Modifier and Type | Method and Description |
---|---|
BigInteger |
abs() |
BigInteger |
add(BigInteger val) |
BigInteger |
and(BigInteger val) |
BigInteger |
andNot(BigInteger val) |
int |
bitCount() |
int |
bitLength() |
BigInteger |
clearBit(int n) |
int |
compareTo(BigInteger val) |
int |
compareTo(Object o) |
BigInteger |
divide(BigInteger divisor) |
BigInteger[] |
divideAndRemainder(BigInteger divisor) |
double |
doubleValue() |
boolean |
equals(Object x)
Default object equality (is identity).
|
BigInteger |
flipBit(int n) |
float |
floatValue() |
BigInteger |
gcd(BigInteger val) |
int |
getLowestSetBit() |
int |
hashCode()
The (default) object hashcode: for transient objects this is simply the
address of the instance in memory, for persistent objects it is the
address at which the instance was first created (maybe in a previous
activation of the VM).
|
int |
intValue() |
boolean |
isProbablePrime(int certainty) |
long |
longValue() |
BigInteger |
max(BigInteger val) |
BigInteger |
min(BigInteger val) |
BigInteger |
mod(BigInteger m) |
BigInteger |
modInverse(BigInteger m) |
BigInteger |
modPow(BigInteger exponent,
BigInteger m) |
BigInteger |
multiply(BigInteger val) |
BigInteger |
negate() |
BigInteger |
not() |
BigInteger |
or(BigInteger val) |
BigInteger |
pow(int exp) |
static BigInteger |
probablePrime(int bitLength,
Random rnd) |
BigInteger |
remainder(BigInteger divisor) |
BigInteger |
setBit(int n) |
BigInteger |
shiftLeft(int n) |
BigInteger |
shiftRight(int n) |
int |
signum() |
BigInteger |
subtract(BigInteger val) |
boolean |
testBit(int n) |
byte[] |
toByteArray() |
String |
toString()
Default String representation: overriden by many classes.
|
String |
toString(int radix) |
static BigInteger |
valueOf(long val) |
BigInteger |
xor(BigInteger val) |
byteValue, shortValue
public static final BigInteger ONE
public static final BigInteger ZERO
public BigInteger(int numBits, Random rnd)
public BigInteger(int bitLength, int certainty, Random rnd)
public BigInteger(String val)
public BigInteger(String val, int radix)
public BigInteger(int signum, byte[] magnitude)
public BigInteger(byte[] val)
public static BigInteger valueOf(long val)
public byte[] toByteArray()
public BigInteger abs()
public BigInteger negate()
public BigInteger add(BigInteger val)
public BigInteger subtract(BigInteger val)
public int signum()
public BigInteger shiftRight(int n)
public BigInteger shiftLeft(int n)
public int bitLength()
public boolean testBit(int n)
public BigInteger setBit(int n)
public BigInteger clearBit(int n)
public BigInteger flipBit(int n)
public int getLowestSetBit()
public int bitCount()
public BigInteger not()
public BigInteger and(BigInteger val)
public BigInteger or(BigInteger val)
public BigInteger xor(BigInteger val)
public BigInteger andNot(BigInteger val)
public float floatValue()
floatValue
in class Number
public double doubleValue()
doubleValue
in class Number
public int compareTo(Object o) throws ClassCastException
compareTo
in interface Comparable
ClassCastException
public int compareTo(BigInteger val)
public BigInteger min(BigInteger val)
public BigInteger max(BigInteger val)
public int hashCode()
Object
public boolean equals(Object x)
Object
public String toString()
Object
public String toString(int radix)
public BigInteger gcd(BigInteger val)
public BigInteger multiply(BigInteger val)
public BigInteger pow(int exp)
public BigInteger[] divideAndRemainder(BigInteger divisor)
public BigInteger divide(BigInteger divisor)
public BigInteger remainder(BigInteger divisor)
public BigInteger modInverse(BigInteger m)
public BigInteger modPow(BigInteger exponent, BigInteger m)
public BigInteger mod(BigInteger m)
public boolean isProbablePrime(int certainty)
public static BigInteger probablePrime(int bitLength, Random rnd)