Java Doc for BigInteger.java in  » Apache-Harmony-Java-SE » java-package » java » math » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » java package » java.math 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.lang.Number
      java.math.BigInteger

BigInteger
public class BigInteger extends Number implements Comparable<BigInteger>,Serializable(Code)


Field Summary
final static  intEQUALS
     The BigInteger constant 0 used for comparison.
final static  intGREATER
     The BigInteger constant 1 used for comparison.
final static  intLESS
     The BigInteger constant -1 used for comparison.
final static  BigIntegerMINUS_ONE
     The BigInteger constant -1.
final public static  BigIntegerONE
    
final static  BigInteger[]SMALL_VALUES
     All the numbers in the range [0,10] are cached.
final public static  BigIntegerTEN
    
final public static  BigIntegerZERO
    
transient  intdigits
     The magnitude of this in the little-endian representation.
transient  intnumberLength
     The length of this in measured in ints.
transient  intsign
     The sign of this.

Constructor Summary
public  BigInteger(int numBits, Random rnd)
    
public  BigInteger(int bitLength, int certainty, Random rnd)
    
public  BigInteger(String val)
    
public  BigInteger(String val, int radix)
    
public  BigInteger(int signum, byte[] magnitude)
    
public  BigInteger(byte[] val)
    
 BigInteger(int sign, int value)
     Constructs a number which array is of size 1.
 BigInteger(int sign, int numberLength, int[] digits)
     Constructs a number without to create new space.
 BigInteger(int sign, long val)
     Creates a new BigInteger whose value is equal to the specified long .
 BigInteger(int signum, int digits)
     Creates a new BigInteger with the given sign and magnitude.

Method Summary
public  BigIntegerabs()
    
public  BigIntegeradd(BigInteger val)
    
public  BigIntegerand(BigInteger val)
    
public  BigIntegerandNot(BigInteger val)
    
public  intbitCount()
    
public  intbitLength()
    
public  BigIntegerclearBit(int n)
    
public  intcompareTo(BigInteger val)
    
 BigIntegercopy()
    
final  voidcutOffLeadingZeroes()
     Decreases numberLength if there are zero high elements.
public  BigIntegerdivide(BigInteger divisor)
    
public  BigInteger[]divideAndRemainder(BigInteger divisor)
    
public  doubledoubleValue()
    
public  booleanequals(Object x)
    
 booleanequalsArrays(int[] b)
    
public  BigIntegerflipBit(int n)
    
public  floatfloatValue()
    
public  BigIntegergcd(BigInteger val)
    
 intgetFirstNonzeroDigit()
    
public  intgetLowestSetBit()
    
public  inthashCode()
    
public  intintValue()
    
 booleanisOne()
    
public  booleanisProbablePrime(int certainty)
    
public  longlongValue()
    
public  BigIntegermax(BigInteger val)
    
public  BigIntegermin(BigInteger val)
    
public  BigIntegermod(BigInteger m)
    
public  BigIntegermodInverse(BigInteger m)
    
public  BigIntegermodPow(BigInteger exponent, BigInteger m)
    
public  BigIntegermultiply(BigInteger val)
    
public  BigIntegernegate()
    
public  BigIntegernextProbablePrime()
    
public  BigIntegernot()
    
public  BigIntegeror(BigInteger val)
    
public  BigIntegerpow(int exp)
    
public static  BigIntegerprobablePrime(int bitLength, Random rnd)
    
public  BigIntegerremainder(BigInteger divisor)
    
public  BigIntegersetBit(int n)
    
public  BigIntegershiftLeft(int n)
    
public  BigIntegershiftRight(int n)
    
public  intsignum()
    
public  BigIntegersubtract(BigInteger val)
    
public  booleantestBit(int n)
    
public  byte[]toByteArray()
    
public  StringtoString()
    
public  StringtoString(int radix)
    
 voidunCache()
    
public static  BigIntegervalueOf(long val)
    
public  BigIntegerxor(BigInteger val)
    

Field Detail
EQUALS
final static int EQUALS(Code)
The BigInteger constant 0 used for comparison.



GREATER
final static int GREATER(Code)
The BigInteger constant 1 used for comparison.



LESS
final static int LESS(Code)
The BigInteger constant -1 used for comparison.



MINUS_ONE
final static BigInteger MINUS_ONE(Code)
The BigInteger constant -1.



ONE
final public static BigInteger ONE(Code)



SMALL_VALUES
final static BigInteger[] SMALL_VALUES(Code)
All the numbers in the range [0,10] are cached.



TEN
final public static BigInteger TEN(Code)



ZERO
final public static BigInteger ZERO(Code)



digits
transient int digits(Code)
The magnitude of this in the little-endian representation.



numberLength
transient int numberLength(Code)
The length of this in measured in ints. Can be less than digits.length().



sign
transient int sign(Code)
The sign of this.




Constructor Detail
BigInteger
public BigInteger(int numBits, Random rnd)(Code)



BigInteger
public BigInteger(int bitLength, int certainty, Random rnd)(Code)



BigInteger
public BigInteger(String val)(Code)



BigInteger
public BigInteger(String val, int radix)(Code)



BigInteger
public BigInteger(int signum, byte[] magnitude)(Code)



BigInteger
public BigInteger(byte[] val)(Code)



BigInteger
BigInteger(int sign, int value)(Code)
Constructs a number which array is of size 1.
Parameters:
  sign - the sign of the number
Parameters:
  value - the only one digit of array



BigInteger
BigInteger(int sign, int numberLength, int[] digits)(Code)
Constructs a number without to create new space. This construct should be used only if the three fields of representation are known.
Parameters:
  sign - the sign of the number
Parameters:
  numberLength - the length of the internal array
Parameters:
  digits - a reference of some array created before



BigInteger
BigInteger(int sign, long val)(Code)
Creates a new BigInteger whose value is equal to the specified long .
Parameters:
  sign - the sign of the number
Parameters:
  val - the value of the new BigInteger .



BigInteger
BigInteger(int signum, int digits)(Code)
Creates a new BigInteger with the given sign and magnitude. This constructor does not create a copy, so any changes to the reference will affect the new number.
Parameters:
  signum - The sign of the number represented by digits
Parameters:
  digits - The magnitude of the number




Method Detail
abs
public BigInteger abs()(Code)



add
public BigInteger add(BigInteger val)(Code)



and
public BigInteger and(BigInteger val)(Code)



andNot
public BigInteger andNot(BigInteger val)(Code)



bitCount
public int bitCount()(Code)



bitLength
public int bitLength()(Code)



clearBit
public BigInteger clearBit(int n)(Code)



compareTo
public int compareTo(BigInteger val)(Code)



copy
BigInteger copy()(Code)



cutOffLeadingZeroes
final void cutOffLeadingZeroes()(Code)
Decreases numberLength if there are zero high elements.



divide
public BigInteger divide(BigInteger divisor)(Code)



divideAndRemainder
public BigInteger[] divideAndRemainder(BigInteger divisor)(Code)



doubleValue
public double doubleValue()(Code)



equals
public boolean equals(Object x)(Code)



equalsArrays
boolean equalsArrays(int[] b)(Code)



flipBit
public BigInteger flipBit(int n)(Code)



floatValue
public float floatValue()(Code)



gcd
public BigInteger gcd(BigInteger val)(Code)



getFirstNonzeroDigit
int getFirstNonzeroDigit()(Code)



getLowestSetBit
public int getLowestSetBit()(Code)



hashCode
public int hashCode()(Code)



intValue
public int intValue()(Code)



isOne
boolean isOne()(Code)
Tests if this.abs() is equals to ONE



isProbablePrime
public boolean isProbablePrime(int certainty)(Code)



longValue
public long longValue()(Code)



max
public BigInteger max(BigInteger val)(Code)



min
public BigInteger min(BigInteger val)(Code)



mod
public BigInteger mod(BigInteger m)(Code)



modInverse
public BigInteger modInverse(BigInteger m)(Code)



modPow
public BigInteger modPow(BigInteger exponent, BigInteger m)(Code)



multiply
public BigInteger multiply(BigInteger val)(Code)



negate
public BigInteger negate()(Code)



nextProbablePrime
public BigInteger nextProbablePrime()(Code)



not
public BigInteger not()(Code)



or
public BigInteger or(BigInteger val)(Code)



pow
public BigInteger pow(int exp)(Code)



probablePrime
public static BigInteger probablePrime(int bitLength, Random rnd)(Code)



remainder
public BigInteger remainder(BigInteger divisor)(Code)



setBit
public BigInteger setBit(int n)(Code)



shiftLeft
public BigInteger shiftLeft(int n)(Code)



shiftRight
public BigInteger shiftRight(int n)(Code)



signum
public int signum()(Code)



subtract
public BigInteger subtract(BigInteger val)(Code)



testBit
public boolean testBit(int n)(Code)



toByteArray
public byte[] toByteArray()(Code)



toString
public String toString()(Code)



toString
public String toString(int radix)(Code)



unCache
void unCache()(Code)



valueOf
public static BigInteger valueOf(long val)(Code)



xor
public BigInteger xor(BigInteger val)(Code)



Methods inherited from java.lang.Number
public byte byteValue()(Code)(Java Doc)
abstract public double doubleValue()(Code)(Java Doc)
abstract public float floatValue()(Code)(Java Doc)
abstract public int intValue()(Code)(Java Doc)
abstract public long longValue()(Code)(Java Doc)
public short shortValue()(Code)(Java Doc)

Methods inherited from java.lang.Object
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object object)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final public Class<? extends Object> getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify()(Code)(Java Doc)
final public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait(long millis, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait(long millis) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.