oracle.adfnmc.java.math
Class BigInteger
java.lang.Object
oracle.adfnmc.java.math.BigInteger
- All Implemented Interfaces:
- Serializable, Comparable
public class BigInteger
- extends java.lang.Object
- implements Comparable, Serializable
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
CLASS_INSTANCE
public static final java.lang.Class CLASS_INSTANCE
CLASS_INSTANCE_NAME
public static final java.lang.String CLASS_INSTANCE_NAME
ONE
public static final BigInteger ONE
TEN
public static final BigInteger TEN
ZERO
public static final BigInteger ZERO
BigInteger
public BigInteger(int numBits,
java.util.Random rnd)
BigInteger
public BigInteger(int bitLength,
int certainty,
java.util.Random rnd)
BigInteger
public BigInteger(java.lang.String val)
BigInteger
public BigInteger(java.lang.String val,
int radix)
BigInteger
public BigInteger(int signum,
byte[] magnitude)
BigInteger
public BigInteger(byte[] val)
valueOf
public static BigInteger valueOf(long val)
toByteArray
public byte[] toByteArray()
abs
public BigInteger abs()
negate
public BigInteger negate()
add
public BigInteger add(BigInteger val)
subtract
public BigInteger subtract(BigInteger val)
signum
public int signum()
shiftRight
public BigInteger shiftRight(int n)
shiftLeft
public BigInteger shiftLeft(int n)
bitLength
public int bitLength()
testBit
public boolean testBit(int n)
setBit
public BigInteger setBit(int n)
clearBit
public BigInteger clearBit(int n)
flipBit
public BigInteger flipBit(int n)
getLowestSetBit
public int getLowestSetBit()
bitCount
public int bitCount()
not
public BigInteger not()
and
public BigInteger and(BigInteger val)
or
public BigInteger or(BigInteger val)
xor
public BigInteger xor(BigInteger val)
andNot
public BigInteger andNot(BigInteger val)
intValue
public int intValue()
longValue
public long longValue()
floatValue
public float floatValue()
doubleValue
public double doubleValue()
compareTo
public int compareTo(java.lang.Object o)
- Description copied from interface:
Comparable
- Answers an integer indicating the relative positions of the receiver and the argument in the natural order of
elements of the receiver's class.
- Specified by:
compareTo
in interface Comparable
- Parameters:
o
- Object an object to compare the receiver to
- Returns:
- int which should be <0 if the receiver should sort before the argument, 0 if the receiver should sort in
the same position as the argument, and >0 if the receiver should sort after the argument.
min
public BigInteger min(BigInteger val)
max
public BigInteger max(BigInteger val)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object x)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toString
public java.lang.String toString(int radix)
gcd
public BigInteger gcd(BigInteger val)
multiply
public BigInteger multiply(BigInteger val)
pow
public BigInteger pow(int exp)
divideAndRemainder
public BigInteger[] divideAndRemainder(BigInteger divisor)
divide
public BigInteger divide(BigInteger divisor)
remainder
public BigInteger remainder(BigInteger divisor)
modInverse
public BigInteger modInverse(BigInteger m)
modPow
public BigInteger modPow(BigInteger exponent,
BigInteger m)
mod
public BigInteger mod(BigInteger m)
isProbablePrime
public boolean isProbablePrime(int certainty)
nextProbablePrime
public BigInteger nextProbablePrime()
probablePrime
public static BigInteger probablePrime(int bitLength,
java.util.Random rnd)
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.