public class TimeInterval extends QuantityImpl
format| Constructor and Description |
|---|
TimeInterval(double f,
UnitImpl the_unit)
Creates a TimeInterval with the units and value.
|
TimeInterval(MicroSecondDate begin,
MicroSecondDate end) |
TimeInterval(Quantity interval) |
| Modifier and Type | Method and Description |
|---|---|
TimeInterval |
add(TimeInterval t) |
QuantityImpl |
convertTo(UnitImpl newUnit)
overrides covertTo() in QuantityImpl to return a TimeInterval instead
of a QuantityImpl.
|
static TimeInterval |
createTimeInterval(Quantity q)
Creates a TimeInterval froma Quantity, making sure that the
units are time.
|
QuantityImpl |
divideBy(double f)
overrides divideBy() in QuantityImpl to return a TimeInterval instead
of a QuantityImpl.
|
QuantityImpl |
multiplyBy(double f)
overrides multiplyBy() in QuantityImpl to return a TimeInterval instead
of a QuantityImpl.
|
TimeInterval |
subtract(TimeInterval t) |
abs, add, createEmpty, createQuantityImpl, divideBy, equals, formatValue, get_unit, get_value, getUnit, getValue, getValue, greaterThan, greaterThanEqual, hashCode, inverse, lessThan, lessThanEqual, main, multiplyBy, setFormat, setUnit, setValue, subtract, toString_read, _truncatable_ids, _type, _writepublic TimeInterval(Quantity interval)
public TimeInterval(MicroSecondDate begin, MicroSecondDate end)
public TimeInterval(double f,
UnitImpl the_unit)
java.lang.IllegalArgumentException - if the units are not time.public static TimeInterval createTimeInterval(Quantity q)
java.lang.IllegalArgumentException - if the units are not time.public QuantityImpl convertTo(UnitImpl newUnit)
convertTo in class QuantityImplpublic QuantityImpl multiplyBy(double f)
multiplyBy in class QuantityImplpublic QuantityImpl divideBy(double f)
divideBy in class QuantityImplpublic TimeInterval add(TimeInterval t)
public TimeInterval subtract(TimeInterval t)