gnu.math
public class Duration extends Quantity implements Externalizable
Field Summary | |
---|---|
Unit | unit |
Method Summary | |
---|---|
Numeric | add(Object y, int k) |
static Duration | add(Duration x, Duration y, int k) |
static int | compare(Duration x, Duration y) |
int | compare(Object obj) |
static double | div(Duration dur1, Duration dur2) |
Numeric | div(Object y) |
static boolean | equals(Duration x, Duration y) Compare for equality.
|
boolean | equals(Object obj) Compare for equality.
|
int | getDays() |
int | getHours() |
int | getMinutes() |
int | getMonths() |
long | getNanoSeconds() |
int | getNanoSecondsOnly() |
int | getSecondsOnly() |
long | getTotalMinutes() |
int | getTotalMonths() |
long | getTotalSeconds() |
int | getYears() The number of years in the canonical representation. |
int | hashCode() |
boolean | isExact() |
boolean | isZero() |
static Duration | make(int months, long seconds, int nanos, Unit unit) |
static Duration | makeMinutes(int minutes) |
static Duration | makeMonths(int months) |
Numeric | mul(Object y) |
Numeric | mulReversed(Numeric x) |
Complex | number() |
static Duration | parse(String str, Unit unit) |
static Duration | parseDayTimeDuration(String str) |
static Duration | parseDuration(String str) |
static Duration | parseYearMonthDuration(String str) |
void | readExternal(ObjectInput in) |
static Duration | times(Duration x, double y) |
String | toString() |
Unit | unit() |
static Duration | valueOf(String str, Unit unit) Parse a duration lexical value as specified by XML Schama.
|
void | writeExternal(ObjectOutput out) |