Java Doc for Duration.java in  » Scripting » Kawa » gnu » 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 » Scripting » Kawa » gnu.math 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.lang.Number
      gnu.math.Numeric
         gnu.math.Quantity
            gnu.math.Duration

Duration
public class Duration extends Quantity implements Externalizable(Code)


Field Summary
 intmonths
     Number of whole months.
 intnanos
     Number of nanoseconds. We could possibly include leap seconds in here.
 longseconds
     Does not include any leap seconds. I.e.
public  Unitunit
    


Method Summary
public  Numericadd(Object y, int k)
    
public static  Durationadd(Duration x, Duration y, int k)
    
static  voidappendNanoSeconds(int nanoSeconds, StringBuffer sbuf)
    
public static  intcompare(Duration x, Duration y)
    
public  intcompare(Object obj)
    
public static  doublediv(Duration dur1, Duration dur2)
    
public  Numericdiv(Object y)
    
public static  booleanequals(Duration x, Duration y)
     Compare for equality.
public  booleanequals(Object obj)
     Compare for equality.
public  intgetDays()
    
public  intgetHours()
    
public  intgetMinutes()
    
public  intgetMonths()
    
public  longgetNanoSeconds()
    
public  intgetNanoSecondsOnly()
    
public  intgetSecondsOnly()
    
public  longgetTotalMinutes()
    
public  intgetTotalMonths()
    
public  longgetTotalSeconds()
    
public  intgetYears()
     The number of years in the canonical representation.
public  inthashCode()
    
public  booleanisExact()
    
public  booleanisZero()
    
public static  Durationmake(int months, long seconds, int nanos, Unit unit)
    
public static  DurationmakeMinutes(int minutes)
    
public static  DurationmakeMonths(int months)
    
public  Numericmul(Object y)
    
public  NumericmulReversed(Numeric x)
    
public  Complexnumber()
    
public static  Durationparse(String str, Unit unit)
    
public static  DurationparseDayTimeDuration(String str)
    
public static  DurationparseDuration(String str)
    
public static  DurationparseYearMonthDuration(String str)
    
public  voidreadExternal(ObjectInput in)
    
public static  Durationtimes(Duration x, double y)
    
public  StringtoString()
    
public  Unitunit()
    
public static  DurationvalueOf(String str, Unit unit)
     Parse a duration lexical value as specified by XML Schama.
public  voidwriteExternal(ObjectOutput out)
    

Field Detail
months
int months(Code)
Number of whole months. May be negative.



nanos
int nanos(Code)
Number of nanoseconds. We could possibly include leap seconds in here.



seconds
long seconds(Code)
Does not include any leap seconds. I.e. @code{sign * ((24 * days + hours) * 60 + minutes) * 60 + seconds}, where hours >= 0 && hours < 24 && minutes >= 0 && minutes < 60 && secconds >= 0 && minutes > 60 .



unit
public Unit unit(Code)





Method Detail
add
public Numeric add(Object y, int k)(Code)



add
public static Duration add(Duration x, Duration y, int k)(Code)



appendNanoSeconds
static void appendNanoSeconds(int nanoSeconds, StringBuffer sbuf)(Code)



compare
public static int compare(Duration x, Duration y)(Code)



compare
public int compare(Object obj)(Code)



div
public static double div(Duration dur1, Duration dur2)(Code)



div
public Numeric div(Object y)(Code)



equals
public static boolean equals(Duration x, Duration y)(Code)
Compare for equality. Ignores unit.



equals
public boolean equals(Object obj)(Code)
Compare for equality. Ignores unit.



getDays
public int getDays()(Code)



getHours
public int getHours()(Code)



getMinutes
public int getMinutes()(Code)



getMonths
public int getMonths()(Code)



getNanoSeconds
public long getNanoSeconds()(Code)



getNanoSecondsOnly
public int getNanoSecondsOnly()(Code)



getSecondsOnly
public int getSecondsOnly()(Code)



getTotalMinutes
public long getTotalMinutes()(Code)



getTotalMonths
public int getTotalMonths()(Code)



getTotalSeconds
public long getTotalSeconds()(Code)



getYears
public int getYears()(Code)
The number of years in the canonical representation.



hashCode
public int hashCode()(Code)



isExact
public boolean isExact()(Code)



isZero
public boolean isZero()(Code)



make
public static Duration make(int months, long seconds, int nanos, Unit unit)(Code)



makeMinutes
public static Duration makeMinutes(int minutes)(Code)



makeMonths
public static Duration makeMonths(int months)(Code)



mul
public Numeric mul(Object y)(Code)



mulReversed
public Numeric mulReversed(Numeric x)(Code)



number
public Complex number()(Code)



parse
public static Duration parse(String str, Unit unit)(Code)



parseDayTimeDuration
public static Duration parseDayTimeDuration(String str)(Code)



parseDuration
public static Duration parseDuration(String str)(Code)



parseYearMonthDuration
public static Duration parseYearMonthDuration(String str)(Code)



readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code)



times
public static Duration times(Duration x, double y)(Code)



toString
public String toString()(Code)



unit
public Unit unit()(Code)



valueOf
public static Duration valueOf(String str, Unit unit)(Code)
Parse a duration lexical value as specified by XML Schama. Return null if invalid syntax.



writeExternal
public void writeExternal(ObjectOutput out) throws IOException(Code)



Methods inherited from gnu.math.Quantity
public Numeric abs()(Code)(Java Doc)
public static Quantity add(Quantity x, Quantity y, int k)(Code)(Java Doc)
public Numeric add(Object y, int k)(Code)(Java Doc)
public Numeric addReversed(Numeric x, int k)(Code)(Java Doc)
public static int compare(Quantity x, Quantity y)(Code)(Java Doc)
public int compare(Object obj)(Code)(Java Doc)
public int compareReversed(Numeric x)(Code)(Java Doc)
public Dimensions dimensions()(Code)(Java Doc)
public Numeric div(Object y)(Code)(Java Doc)
public Numeric divReversed(Numeric x)(Code)(Java Doc)
public static Quantity divide(Quantity x, Quantity y)(Code)(Java Doc)
public double doubleImagValue()(Code)(Java Doc)
public double doubleValue()(Code)(Java Doc)
public RealNum im()(Code)(Java Doc)
final public double imValue()(Code)(Java Doc)
public static Quantity make(Complex x, Unit u)(Code)(Java Doc)
public static Quantity make(RealNum re, RealNum im, Unit unit)(Code)(Java Doc)
public static Quantity make(double re, double im, Unit unit)(Code)(Java Doc)
public Numeric mul(Object y)(Code)(Java Doc)
public Numeric mulReversed(Numeric x)(Code)(Java Doc)
public Numeric neg()(Code)(Java Doc)
abstract public Complex number()(Code)(Java Doc)
public RealNum re()(Code)(Java Doc)
final public double reValue()(Code)(Java Doc)
public static Quantity times(Quantity x, Quantity y)(Code)(Java Doc)
public String toString(int radix)(Code)(Java Doc)
public Unit unit()(Code)(Java Doc)

Fields inherited from gnu.math.Numeric
final public static int CEILING(Code)(Java Doc)
final public static int FLOOR(Code)(Java Doc)
final public static int ROUND(Code)(Java Doc)
final public static int TRUNCATE(Code)(Java Doc)

Methods inherited from gnu.math.Numeric
abstract public Numeric abs()(Code)(Java Doc)
abstract public Numeric add(Object obj, int k)(Code)(Java Doc)
final public Numeric add(Object obj)(Code)(Java Doc)
public Numeric addReversed(Numeric x, int k)(Code)(Java Doc)
public int compare(Object obj)(Code)(Java Doc)
public int compareReversed(Numeric x)(Code)(Java Doc)
abstract public Numeric div(Object obj)(Code)(Java Doc)
public Numeric divReversed(Numeric x)(Code)(Java Doc)
public Numeric div_inv()(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public float floatValue()(Code)(Java Doc)
public boolean geq(Object x)(Code)(Java Doc)
public boolean grt(Object x)(Code)(Java Doc)
public int intValue()(Code)(Java Doc)
abstract public boolean isExact()(Code)(Java Doc)
abstract public boolean isZero()(Code)(Java Doc)
public long longValue()(Code)(Java Doc)
abstract public Numeric mul(Object obj)(Code)(Java Doc)
public Numeric mulReversed(Numeric x)(Code)(Java Doc)
public Numeric mul_ident()(Code)(Java Doc)
abstract public Numeric neg()(Code)(Java Doc)
public Numeric power(IntNum y)(Code)(Java Doc)
final public Numeric sub(Object obj)(Code)(Java Doc)
abstract public String toString(int radix)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

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.