| java.lang.Object java.lang.Number java.math.BigInteger
Field Summary | |
final static int | EQUALS The
BigInteger constant 0 used for comparison. | final static int | GREATER The
BigInteger constant 1 used for comparison. | final static int | LESS The
BigInteger constant -1 used for comparison. | final static BigInteger | MINUS_ONE The
BigInteger constant -1. | final public static BigInteger | ONE | final static BigInteger[] | SMALL_VALUES All the
numbers in the range [0,10] are cached. | final public static BigInteger | TEN | final public static BigInteger | ZERO | transient int | digits The magnitude of this in the little-endian representation. | transient int | numberLength The length of this in measured in ints. | transient int | sign The sign of this. |
Constructor Summary | |
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) | | BigInteger(int sign, int value) Constructs a number which array is of size 1. | | BigInteger(int sign, int numberLength, int[] digits) Constructs a number without to create new space. | | BigInteger(int sign, long val) Creates a new
BigInteger whose value is equal to the specified
long . | | BigInteger(int signum, int digits) Creates a new
BigInteger with the given sign and magnitude. |
EQUALS | final static int EQUALS(Code) | | The
BigInteger constant 0 used for comparison.
|
GREATER | final static int GREATER(Code) | | The
BigInteger constant 1 used for comparison.
|
LESS | final static int LESS(Code) | | The
BigInteger constant -1 used for comparison.
|
SMALL_VALUES | final static BigInteger[] SMALL_VALUES(Code) | | All the
numbers in the range [0,10] are cached.
|
digits | transient int digits(Code) | | The magnitude of this in the little-endian representation.
|
numberLength | transient int numberLength(Code) | | The length of this in measured in ints. Can be less than digits.length().
|
sign | transient int sign(Code) | | The sign of this.
|
BigInteger | public BigInteger(int bitLength, int certainty, Random rnd)(Code) | | |
BigInteger | public BigInteger(int signum, byte[] magnitude)(Code) | | |
BigInteger | public BigInteger(byte[] val)(Code) | | |
BigInteger | BigInteger(int sign, int value)(Code) | | Constructs a number which array is of size 1.
Parameters: sign - the sign of the number Parameters: value - the only one digit of array |
BigInteger | BigInteger(int sign, int numberLength, int[] digits)(Code) | | Constructs a number without to create new space. This construct should be
used only if the three fields of representation are known.
Parameters: sign - the sign of the number Parameters: numberLength - the length of the internal array Parameters: digits - a reference of some array created before |
BigInteger | BigInteger(int sign, long val)(Code) | | Creates a new
BigInteger whose value is equal to the specified
long .
Parameters: sign - the sign of the number Parameters: val - the value of the new BigInteger . |
BigInteger | BigInteger(int signum, int digits)(Code) | | Creates a new
BigInteger with the given sign and magnitude. This
constructor does not create a copy, so any changes to the reference will
affect the new number.
Parameters: signum - The sign of the number represented by digits Parameters: digits - The magnitude of the number |
bitCount | public int bitCount()(Code) | | |
bitLength | public int bitLength()(Code) | | |
cutOffLeadingZeroes | final void cutOffLeadingZeroes()(Code) | | Decreases
numberLength if there are zero high elements.
|
doubleValue | public double doubleValue()(Code) | | |
equalsArrays | boolean equalsArrays(int[] b)(Code) | | |
floatValue | public float floatValue()(Code) | | |
getFirstNonzeroDigit | int getFirstNonzeroDigit()(Code) | | |
getLowestSetBit | public int getLowestSetBit()(Code) | | |
hashCode | public int hashCode()(Code) | | |
intValue | public int intValue()(Code) | | |
isOne | boolean isOne()(Code) | | Tests if
this.abs() is equals to
ONE
|
isProbablePrime | public boolean isProbablePrime(int certainty)(Code) | | |
longValue | public long longValue()(Code) | | |
signum | public int signum()(Code) | | |
testBit | public boolean testBit(int n)(Code) | | |
toByteArray | public byte[] toByteArray()(Code) | | |
|
|