Java Doc for JMLFiniteInteger.java in  » Testing » KeY » org » jmlspecs » models » 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 » Testing » KeY » org.jmlspecs.models 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jmlspecs.models.JMLInfiniteIntegerClass
      org.jmlspecs.models.JMLFiniteInteger

JMLFiniteInteger
public class JMLFiniteInteger extends JMLInfiniteIntegerClass (Code)
Arbitrary precision integers with a finite value.
version:
   $Revision: 1.2 $
author:
   Gary T. Leavens
See Also:   java.math.BigInteger


Field Summary
final public static  JMLFiniteIntegerONE
     The number one (1).
final public static  JMLFiniteIntegerZERO
     The number zero (0).
final protected  BigIntegerval
    

Constructor Summary
public  JMLFiniteInteger()
     Initialize this finite integer to zero (0).
public  JMLFiniteInteger(BigInteger n)
     Initialize this finite integer from the given BigInteger.
public  JMLFiniteInteger(long n)
     Initialize this finite integer from the given long.

Method Summary
public  JMLInfiniteIntegeradd(JMLInfiniteInteger n)
     Return the sum of this integer and the argument.
public  intcompareTo(JMLInfiniteInteger n)
     Compare this to the given integer, returning a comparison code.
public  intcompareTo(Object o)
     Compare this to o, returning a comparison code.
public  JMLInfiniteIntegerdivide(JMLInfiniteInteger n)
     Return the quotient of this integer divided by the argument.
public  doubledoubleValue()
     Return this integer approximated by a double.
public  BigIntegerfiniteValue()
     Return the value of this integer.
public  floatfloatValue()
     Return this integer approximated by a float.
public  inthashCode()
     Return a hash code for this object.
public  intintValue()
    
public  booleanisFinite()
     Return true.
public  longlongValue()
    
public  JMLInfiniteIntegermod(JMLInfiniteInteger n)
     Return this integer modulo the argument.
public  JMLInfiniteIntegermultiply(JMLInfiniteInteger n)
     Return the product of this integer and the argument.
public  JMLInfiniteIntegernegate()
     Return the negation of this integer.
public  JMLInfiniteIntegerpow(int n)
     Return this integer raised to the argument's power.
public  JMLInfiniteIntegerremainder(JMLInfiniteInteger n)
     Return the remainder of this integer divided by the argument.
public  intsignum()
     Return the sign of this integer.
public  JMLInfiniteIntegersubtract(JMLInfiniteInteger n)
     Return the difference between this integer and the argument.
public  StringtoString()
     Return the decimal representation of this integer.
public  StringtoString(int radix)
     Return the digits representing this integer in the given radix.

Field Detail
ONE
final public static JMLFiniteInteger ONE(Code)
The number one (1).



ZERO
final public static JMLFiniteInteger ZERO(Code)
The number zero (0).



val
final protected BigInteger val(Code)




Constructor Detail
JMLFiniteInteger
public JMLFiniteInteger()(Code)
Initialize this finite integer to zero (0).



JMLFiniteInteger
public JMLFiniteInteger(BigInteger n) throws IllegalArgumentException(Code)
Initialize this finite integer from the given BigInteger.



JMLFiniteInteger
public JMLFiniteInteger(long n)(Code)
Initialize this finite integer from the given long.




Method Detail
add
public JMLInfiniteInteger add(JMLInfiniteInteger n)(Code)
Return the sum of this integer and the argument.



compareTo
public int compareTo(JMLInfiniteInteger n)(Code)
Compare this to the given integer, returning a comparison code.



compareTo
public int compareTo(Object o) throws ClassCastException(Code)
Compare this to o, returning a comparison code.
Parameters:
  o - the object this is compared to.
exception:
  ClassCastException - when o is nota JMLInfiniteInteger or a BigInteger.



divide
public JMLInfiniteInteger divide(JMLInfiniteInteger n)(Code)
Return the quotient of this integer divided by the argument.



doubleValue
public double doubleValue()(Code)
Return this integer approximated by a double.



finiteValue
public BigInteger finiteValue()(Code)
Return the value of this integer.



floatValue
public float floatValue()(Code)
Return this integer approximated by a float.



hashCode
public int hashCode()(Code)
Return a hash code for this object.



intValue
public int intValue()(Code)
Converts this BigInteger to an integer



isFinite
public boolean isFinite()(Code)
Return true.



longValue
public long longValue()(Code)
Converts this BigInteger to a long



mod
public JMLInfiniteInteger mod(JMLInfiniteInteger n) throws ArithmeticException(Code)
Return this integer modulo the argument.



multiply
public JMLInfiniteInteger multiply(JMLInfiniteInteger n)(Code)
Return the product of this integer and the argument.



negate
public JMLInfiniteInteger negate()(Code)
Return the negation of this integer.



pow
public JMLInfiniteInteger pow(int n)(Code)
Return this integer raised to the argument's power.



remainder
public JMLInfiniteInteger remainder(JMLInfiniteInteger n)(Code)
Return the remainder of this integer divided by the argument.



signum
public int signum()(Code)
Return the sign of this integer.



subtract
public JMLInfiniteInteger subtract(JMLInfiniteInteger n)(Code)
Return the difference between this integer and the argument.



toString
public String toString()(Code)
Return the decimal representation of this integer.



toString
public String toString(int radix)(Code)
Return the digits representing this integer in the given radix.



Methods inherited from org.jmlspecs.models.JMLInfiniteIntegerClass
public JMLInfiniteInteger abs()(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
abstract public int compareTo(JMLInfiniteInteger n)(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
public boolean greaterThan(JMLInfiniteInteger n)(Code)(Java Doc)
public boolean greaterThanOrEqualTo(JMLInfiniteInteger n)(Code)(Java Doc)
public boolean lessThan(JMLInfiniteInteger n)(Code)(Java Doc)
public boolean lessThanOrEqualTo(JMLInfiniteInteger n)(Code)(Java Doc)
public JMLInfiniteInteger max(JMLInfiniteInteger n)(Code)(Java Doc)
public JMLInfiniteInteger min(JMLInfiniteInteger n)(Code)(Java Doc)

Methods inherited from java.lang.Object
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify() throws IllegalMonitorStateException(Code)(Java Doc)
final public void notifyAll() throws IllegalMonitorStateException(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait() throws IllegalMonitorStateException, InterruptedException(Code)(Java Doc)
final public void wait(long ms) throws IllegalMonitorStateException, InterruptedException(Code)(Java Doc)
final public void wait(long ms, int ns) throws IllegalMonitorStateException, 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.