Class java.math.BigInteger
All Packages Class Hierarchy This Package Previous Next Index
Class java.math.BigInteger
java.lang.Object
|
+----java.math.BigNum
|
+----java.math.BigInteger
- public class BigInteger
- extends BigNum
A class implementing arbitrary length integers.
Copyright (C) 1995, 1996 Systemics Ltd (http://www.systemics.com/)
All rights reserved.
-
BigInteger()
-
-
BigInteger(BigInteger)
-
-
BigInteger(String)
-
-
BigInteger(byte[])
-
-
clone()
- Creates a clone of the object.
-
cmp(BigInteger)
-
-
copy(Object)
-
-
dec()
-
-
finalize()
- Code to perform when this object is garbage collected.
-
fromByteArray(byte[])
-
-
fromString(String)
-
-
inc()
-
-
modExp(BigInteger, BigInteger)
-
-
mul(BigInteger, BigInteger)
-
-
newBuffer(int)
- An internal function to create a buffer big enough in which
to store a number.
-
numberOfBits()
-
-
toByteArray()
- Convert a number into a byte array
-
toString()
- Returns a String that represents the value of this Object.
BigInteger
public BigInteger()
BigInteger
public BigInteger(BigInteger from)
BigInteger
public BigInteger(String hexString)
BigInteger
public BigInteger(byte buffer[])
clone
public Object clone()
- Creates a clone of the object.
- Overrides:
- clone in class BigNum
copy
public void copy(Object src)
- Overrides:
- copy in class BigNum
fromString
public void fromString(String inHex)
toString
public String toString()
- Returns a String that represents the value of this Object.
- Overrides:
- toString in class BigNum
finalize
protected void finalize()
- Code to perform when this object is garbage collected.
- Overrides:
- finalize in class BigNum
modExp
public BigInteger modExp(BigInteger power,
BigInteger modulo)
mul
public BigInteger mul(BigInteger a,
BigInteger b)
cmp
public int cmp(BigInteger a)
inc
public BigInteger inc()
dec
public BigInteger dec()
newBuffer
protected final static byte[] newBuffer(int bitLen)
- An internal function to create a buffer big enough in which
to store a number.
- Parameters:
- bitLen - The number of bits in the number.
- Returns:
- a buffer in which to store a number.
toByteArray
public byte[] toByteArray()
- Convert a number into a byte array
- Returns:
- a byte array
fromByteArray
public void fromByteArray(byte buf[])
numberOfBits
public int numberOfBits()
All Packages Class Hierarchy This Package Previous Next Index