Java Doc for Number.java in  » Science » jscience-4.3.1 » org » jscience » mathematics » number » 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 » Science » jscience 4.3.1 » org.jscience.mathematics.number 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.lang.Number
      org.jscience.mathematics.number.Number

Number
abstract public class Number extends java.lang.Number implements Ring<T>,Comparable<T>,Realtime,XMLSerializable(Code)

This class represents a javolution.lang.ValueType value-type number.


author:
   Jean-Marie Dautelle
version:
   3.0, February 13, 2006
See Also:    * Wikipedia: Number




Method Summary
final public  bytebyteValue()
     Returns the value of this number as a byte.
abstract public  intcompareTo(T that)
     Compares this number with the specified number for order.
abstract public  Number<T>copy()
     Returns a copy of this number javolution.context.AllocatorContext allocated by the calling thread (possibly on the stack).
abstract public  doubledoubleValue()
     Returns the value of this number as a double.
abstract public  booleanequals(Object obj)
     Indicates if this number is equals to the specified object.
Parameters:
  obj - the object to be compared with.
final public  floatfloatValue()
     Returns the value of this number as a float.
abstract public  inthashCode()
     Returns the hash code for this number (consistent with Number.equals(Object) .
final public  intintValue()
     Returns the value of this number as an int.
final public  booleanisGreaterThan(T that)
     Indicates if this number is ordered after that number (convenience method).
Parameters:
  that - the number to compare with.
abstract public  booleanisLargerThan(T that)
     Compares the magnitude of this number with that number.
final public  booleanisLessThan(T that)
     Indicates if this number is ordered before that number (convenience method).
Parameters:
  that - the number to compare with.
abstract public  longlongValue()
     Returns the value of this number as a long.
public  Tminus(T that)
     Returns the difference between this number and the one specified.
Parameters:
  that - the number to be subtracted.
public  Tpow(int exp)
     Returns this number raised at the specified positive exponent.
Parameters:
  exp - the positive exponent.
final public  shortshortValue()
     Returns the value of this number as a short.
final public  StringtoString()
     Returns the text representation of this number as a java.lang.String.
abstract public  TexttoText()
     Returns the textual representation of this real-time object (equivalent to toString except that the returned value can be allocated from the local context space).



Method Detail
byteValue
final public byte byteValue()(Code)
Returns the value of this number as a byte. This may involve rounding or truncation. the numeric value represented by this object after conversionto type byte.



compareTo
abstract public int compareTo(T that)(Code)
Compares this number with the specified number for order. Returns a negative integer, zero, or a positive integer as this number is less than, equal to, or greater than the specified number. Implementation must ensure that this method is consistent with equals (x.compareTo(y)==0) == (x.equals(y)),
Parameters:
  that - the number to be compared. a negative integer, zero, or a positive integer as this numberis less than, equal to, or greater than the specified number.



copy
abstract public Number<T> copy()(Code)
Returns a copy of this number javolution.context.AllocatorContext allocated by the calling thread (possibly on the stack). an identical and independant copy of this number.



doubleValue
abstract public double doubleValue()(Code)
Returns the value of this number as a double. the numeric value represented by this object after conversionto type double.



equals
abstract public boolean equals(Object obj)(Code)
Indicates if this number is equals to the specified object.
Parameters:
  obj - the object to be compared with. true if this number and the specified argumentrepresent the same number; false otherwise.



floatValue
final public float floatValue()(Code)
Returns the value of this number as a float. This may involve rounding. the numeric value represented by this object after conversionto type float.



hashCode
abstract public int hashCode()(Code)
Returns the hash code for this number (consistent with Number.equals(Object) . this number hash code.



intValue
final public int intValue()(Code)
Returns the value of this number as an int. This may involve rounding or truncation. the numeric value represented by this object after conversionto type int.



isGreaterThan
final public boolean isGreaterThan(T that)(Code)
Indicates if this number is ordered after that number (convenience method).
Parameters:
  that - the number to compare with. this.compareTo(that) > 0.



isLargerThan
abstract public boolean isLargerThan(T that)(Code)
Compares the magnitude of this number with that number. |this| > |that|



isLessThan
final public boolean isLessThan(T that)(Code)
Indicates if this number is ordered before that number (convenience method).
Parameters:
  that - the number to compare with. this.compareTo(that) < 0.



longValue
abstract public long longValue()(Code)
Returns the value of this number as a long. the numeric value represented by this object after conversionto type long.



minus
public T minus(T that)(Code)
Returns the difference between this number and the one specified.
Parameters:
  that - the number to be subtracted. this - that.



pow
public T pow(int exp)(Code)
Returns this number raised at the specified positive exponent.
Parameters:
  exp - the positive exponent. thisexp
throws:
  IllegalArgumentException - if exp <= 0



shortValue
final public short shortValue()(Code)
Returns the value of this number as a short. This may involve rounding or truncation. the numeric value represented by this object after conversionto type short.



toString
final public String toString()(Code)
Returns the text representation of this number as a java.lang.String. toText().toString()



toText
abstract public Text toText()(Code)
Returns the textual representation of this real-time object (equivalent to toString except that the returned value can be allocated from the local context space). this object's textual representation.



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
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) 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.