Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.java.math
Class BigInteger

java.lang.Object
  extended by oracle.adfnmc.java.math.BigInteger
All Implemented Interfaces:
Serializable, Comparable

public class BigInteger
extends java.lang.Object
implements Comparable, Serializable


Field Summary
static java.lang.Class CLASS_INSTANCE
           
static java.lang.String CLASS_INSTANCE_NAME
           
static BigInteger ONE
           
static BigInteger TEN
           
static BigInteger ZERO
           
 
Constructor Summary
BigInteger(byte[] val)
           
BigInteger(int signum, byte[] magnitude)
           
BigInteger(int bitLength, int certainty, java.util.Random rnd)
           
BigInteger(int numBits, java.util.Random rnd)
           
BigInteger(java.lang.String val)
           
BigInteger(java.lang.String val, int radix)
           
 
Method Summary
 BigInteger abs()
           
 BigInteger add(BigInteger val)
           
 BigInteger and(BigInteger val)
           
 BigInteger andNot(BigInteger val)
           
 int bitCount()
           
 int bitLength()
           
 BigInteger clearBit(int n)
           
 int compareTo(java.lang.Object o)
          Answers an integer indicating the relative positions of the receiver and the argument in the natural order of elements of the receiver's class.
 BigInteger divide(BigInteger divisor)
           
 BigInteger[] divideAndRemainder(BigInteger divisor)
           
 double doubleValue()
           
 boolean equals(java.lang.Object x)
           
 BigInteger flipBit(int n)
           
 float floatValue()
           
 BigInteger gcd(BigInteger val)
           
 int getLowestSetBit()
           
 int hashCode()
           
 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 nextProbablePrime()
           
 BigInteger not()
           
 BigInteger or(BigInteger val)
           
 BigInteger pow(int exp)
           
static BigInteger probablePrime(int bitLength, java.util.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()
           
 java.lang.String toString()
           
 java.lang.String toString(int radix)
           
static BigInteger valueOf(long val)
           
 BigInteger xor(BigInteger val)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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)

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.