| java.lang.Object java.lang.Number gnu.math.Numeric gnu.math.Quantity gnu.math.Duration
Field Summary | |
int | months Number of whole months. | int | nanos Number of nanoseconds.
We could possibly include leap seconds in here. | long | seconds Does not include any leap seconds.
I.e. | public Unit | unit |
Method Summary | |
public Numeric | add(Object y, int k) | public static Duration | add(Duration x, Duration y, int k) | static void | appendNanoSeconds(int nanoSeconds, StringBuffer sbuf) | public static int | compare(Duration x, Duration y) | public int | compare(Object obj) | public static double | div(Duration dur1, Duration dur2) | public Numeric | div(Object y) | public static boolean | equals(Duration x, Duration y) Compare for equality. | public boolean | equals(Object obj) Compare for equality. | public int | getDays() | public int | getHours() | public int | getMinutes() | public int | getMonths() | public long | getNanoSeconds() | public int | getNanoSecondsOnly() | public int | getSecondsOnly() | public long | getTotalMinutes() | public int | getTotalMonths() | public long | getTotalSeconds() | public int | getYears() The number of years in the canonical representation. | public int | hashCode() | public boolean | isExact() | public boolean | isZero() | public static Duration | make(int months, long seconds, int nanos, Unit unit) | public static Duration | makeMinutes(int minutes) | public static Duration | makeMonths(int months) | public Numeric | mul(Object y) | public Numeric | mulReversed(Numeric x) | public Complex | number() | public static Duration | parse(String str, Unit unit) | public static Duration | parseDayTimeDuration(String str) | public static Duration | parseDuration(String str) | public static Duration | parseYearMonthDuration(String str) | public void | readExternal(ObjectInput in) | public static Duration | times(Duration x, double y) | public String | toString() | public Unit | unit() | public static Duration | valueOf(String str, Unit unit) Parse a duration lexical value as specified by XML Schama. | public void | writeExternal(ObjectOutput out) |
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 .
|
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) | | |
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.
|
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)
|
|
|