Method Summary |
|
final public Measure | add(Measure toAdd) |
final public Measure | computeDenominator(Measure num) |
final public Measure | computeNumerator(Measure den) |
final public Duration | divide(Rate toRate) |
final public double | divideRate(Rate toRate) |
public boolean | equals(Object o) |
final public Measure | floor(int unit) |
final public Measure | getCanonicalDenominator() |
final public Measure | getCanonicalNumerator() |
public int | getCommonUnit() |
final public static double | getConvFactor(int i) |
final public Class | getDenominatorClass() |
public double | getDollarsPerDay() |
public double | getDollarsPerFortnight() |
public double | getDollarsPerHour() |
public double | getDollarsPerKilosecond() |
public double | getDollarsPerMillisecond() |
public double | getDollarsPerMinute() |
public double | getDollarsPerMonth() |
public double | getDollarsPerSecond() |
public double | getDollarsPerWeek() |
public double | getDollarsPerYear() |
public int | getMaxUnit() |
final public int | getNativeUnit() |
final public double | getNativeValue() |
final public Class | getNumeratorClass() |
final public String | getUnitName(int unit) |
public double | getValue(int unit) |
public double | getValue(int unit1, int unit2) |
public int | hashCode() |
final public Measure | negate() |
final public static CostRate | newCostRate(double v, int unit) |
final public static CostRate | newCostRate(String s, int unit) |
final public static CostRate | newCostRate(double v, int unit1, int unit2) |
final public static CostRate | newCostRate(Cost num, Duration den) |
final public static CostRate | newCostRate(String s, int unit1, int unit2) |
final public static CostRate | newDollarsPerDay(double v) |
final public static CostRate | newDollarsPerDay(String s) |
final public static CostRate | newDollarsPerFortnight(double v) |
final public static CostRate | newDollarsPerFortnight(String s) |
final public static CostRate | newDollarsPerHour(double v) |
final public static CostRate | newDollarsPerHour(String s) |
final public static CostRate | newDollarsPerKilosecond(double v) |
final public static CostRate | newDollarsPerKilosecond(String s) |
final public static CostRate | newDollarsPerMillisecond(double v) |
final public static CostRate | newDollarsPerMillisecond(String s) |
final public static CostRate | newDollarsPerMinute(double v) |
final public static CostRate | newDollarsPerMinute(String s) |
final public static CostRate | newDollarsPerMonth(double v) |
final public static CostRate | newDollarsPerMonth(String s) |
final public static CostRate | newDollarsPerSecond(double v) |
final public static CostRate | newDollarsPerSecond(String s) |
final public static CostRate | newDollarsPerWeek(double v) |
final public static CostRate | newDollarsPerWeek(String s) |
final public static CostRate | newDollarsPerYear(double v) |
final public static CostRate | newDollarsPerYear(String s) |
final public static AbstractMeasure | newMeasure(String s, int unit) |
final public static AbstractMeasure | newMeasure(double v, int unit) |
public void | readExternal(ObjectInput in) |
final public Measure | scale(double scale) |
final public Measure | subtract(Measure toSubtract) |
public String | toString() |
final public Measure | valueOf(double value) |
final public Measure | valueOf(double value, int unit) |
public void | writeExternal(ObjectOutput out) |