Save This Page
Home » openjdk-7 » java » math » [javadoc | source]
java.math
class: SignedMutableBigInteger [javadoc | source]
java.lang.Object
   java.math.MutableBigInteger
      java.math.SignedMutableBigInteger
A class used to represent multiprecision integers that makes efficient use of allocated space by allowing a number to occupy only part of an array so that the arrays do not have to be reallocated as often. When performing an operation with many iterations the array used to hold a number is only increased when necessary and does not have to be the same size as the number it represents. A mutable number allows calculations to occur on the same number without having to create a new number for every step of the calculation as occurs with BigIntegers. Note that SignedMutableBigIntegers only support signed addition and subtraction. All other operations occur as with MutableBigIntegers.
Field Summary
 int sign    The sign of this MutableBigInteger. 
Fields inherited from java.math.MutableBigInteger:
value,  intLen,  offset
Constructor:
 SignedMutableBigInteger() 
 SignedMutableBigInteger(int val) 
 SignedMutableBigInteger(MutableBigInteger val) 
    Construct a new MutableBigInteger with a magnitude equal to the specified MutableBigInteger.
Method from java.math.SignedMutableBigInteger Summary:
signedAdd,   signedAdd,   signedSubtract,   signedSubtract,   toString
Methods from java.math.MutableBigInteger:
add,   binaryGcd,   clear,   compare,   copyValue,   copyValue,   divide,   divideOneWord,   euclidModInverse,   fixup,   hybridGCD,   inverseMod32,   isEven,   isNormal,   isOdd,   isOne,   isZero,   leftShift,   modInverseBP2,   modInverseMP2,   mul,   multiply,   mutableModInverse,   normalize,   reset,   rightShift,   setInt,   setValue,   subtract,   toIntArray,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.math.SignedMutableBigInteger Detail:
  void signedAdd(SignedMutableBigInteger addend) 
    Signed addition built upon unsigned add and subtract.
  void signedAdd(MutableBigInteger addend) 
    Signed addition built upon unsigned add and subtract.
  void signedSubtract(SignedMutableBigInteger addend) 
    Signed subtraction built upon unsigned add and subtract.
  void signedSubtract(MutableBigInteger addend) 
    Signed subtraction built upon unsigned add and subtract.
 public String toString() 
    Print out the first intLen ints of this MutableBigInteger's value array starting at offset.