CDC 1.1.2

クラス
java.math.BigInteger の使用

BigInteger を使用しているパッケージ
java.math 任意精度の整数演算 (BigInteger) および任意精度の小数演算 (BigDecimal) を行うクラスを提供します。 
 

java.math での BigInteger の使用
 

BigInteger として宣言されている java.math のフィールド
static BigInteger BigInteger.ONE
          BigInteger 定数 1 です。
static BigInteger BigInteger.ZERO
          BigInteger 定数 0 です。
 

BigInteger を返す java.math のメソッド
 BigInteger BigInteger.abs()
          値がこの BigInteger の絶対値である BigInteger を返します。
 BigInteger BigInteger.add(BigInteger val)
          値が (this + val) である BigInteger を返します。
 BigInteger BigInteger.and(BigInteger val)
          値が (this & val) である BigInteger を返します。
 BigInteger BigInteger.andNot(BigInteger val)
          値が (this & ~val) である BigInteger を返します。
 BigInteger BigInteger.clearBit(int n)
          値がこの BigInteger に等しい BigInteger を、指定されたビットをクリアーして返します。
 BigInteger BigInteger.divide(BigInteger val)
          値が (this / val) である BigInteger を返します。
 BigInteger[] BigInteger.divideAndRemainder(BigInteger val)
          (this / val) そして (this % val) と続く、2 つの BigInteger の配列を返します。
 BigInteger BigInteger.flipBit(int n)
          値がこの BigInteger に等しい BigInteger を、指定されたビットを反転させて返します。
 BigInteger BigInteger.gcd(BigInteger val)
          値が abs(this)abs(val) の最大公約数である BigInteger を返します。
 BigInteger BigInteger.max(BigInteger val)
          この BigInteger と val の最大値を返します。
 BigInteger BigInteger.min(BigInteger val)
          この BigInteger と val の最小値を返します。
 BigInteger BigInteger.mod(BigInteger m)
          値が (this mod m) である BigInteger を返します。
 BigInteger BigInteger.modInverse(BigInteger m)
          値が (this-1 mod m) である BigInteger を返します。
 BigInteger BigInteger.modPow(BigInteger exponent, BigInteger m)
          値が (thisexponent mod m) である BigInteger を返します。
 BigInteger BigInteger.multiply(BigInteger val)
          値が (this * val) である BigInteger を返します。
 BigInteger BigInteger.negate()
          値が (-this) である BigInteger を返します。
 BigInteger BigInteger.not()
          値が (~this) である BigInteger を返します。
 BigInteger BigInteger.or(BigInteger val)
          値が (this | val) である BigInteger を返します。
 BigInteger BigInteger.pow(int exponent)
          値が (thisexponent) である BigInteger を返します。
 BigInteger BigInteger.remainder(BigInteger val)
          値が (this % val) である BigInteger を返します。
 BigInteger BigInteger.setBit(int n)
          値がこの BigInteger に等しい BigInteger を、指定されたビットを設定して返します。
 BigInteger BigInteger.shiftLeft(int n)
          値が (this << n) である BigInteger を返します。
 BigInteger BigInteger.shiftRight(int n)
          値が (this >> n) である BigInteger を返します。
 BigInteger BigInteger.subtract(BigInteger val)
          値が (this - val) である BigInteger を返します。
static BigInteger BigInteger.valueOf(long val)
          値が指定された long の値と等しい BigInteger を返します。
 BigInteger BigInteger.xor(BigInteger val)
          値が (this ^ val) である BigInteger を返します。
 

BigInteger 型のパラメータを持つ java.math のメソッド
 BigInteger BigInteger.add(BigInteger val)
          値が (this + val) である BigInteger を返します。
 BigInteger BigInteger.and(BigInteger val)
          値が (this & val) である BigInteger を返します。
 BigInteger BigInteger.andNot(BigInteger val)
          値が (this & ~val) である BigInteger を返します。
 int BigInteger.compareTo(BigInteger val)
          この BigInteger を指定された BigInteger と比較します。
 BigInteger BigInteger.divide(BigInteger val)
          値が (this / val) である BigInteger を返します。
 BigInteger[] BigInteger.divideAndRemainder(BigInteger val)
          (this / val) そして (this % val) と続く、2 つの BigInteger の配列を返します。
 BigInteger BigInteger.gcd(BigInteger val)
          値が abs(this)abs(val) の最大公約数である BigInteger を返します。
 BigInteger BigInteger.max(BigInteger val)
          この BigInteger と val の最大値を返します。
 BigInteger BigInteger.min(BigInteger val)
          この BigInteger と val の最小値を返します。
 BigInteger BigInteger.mod(BigInteger m)
          値が (this mod m) である BigInteger を返します。
 BigInteger BigInteger.modInverse(BigInteger m)
          値が (this-1 mod m) である BigInteger を返します。
 BigInteger BigInteger.modPow(BigInteger exponent, BigInteger m)
          値が (thisexponent mod m) である BigInteger を返します。
 BigInteger BigInteger.multiply(BigInteger val)
          値が (this * val) である BigInteger を返します。
 BigInteger BigInteger.or(BigInteger val)
          値が (this | val) である BigInteger を返します。
 BigInteger BigInteger.remainder(BigInteger val)
          値が (this % val) である BigInteger を返します。
 BigInteger BigInteger.subtract(BigInteger val)
          値が (this - val) である BigInteger を返します。
 BigInteger BigInteger.xor(BigInteger val)
          値が (this ^ val) である BigInteger を返します。
 


CDC 1.1.2

Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. Use of this specification is subject to license terms.