long |
IQuantity.clampedFloorIn(IUnit targetUnit) |
Get the long value closest to the floor of the numerical quantity value that this
quantity would have if expressed in the unit targetUnit .
|
int |
IQuantity.clampedIntFloorIn(IUnit targetUnit) |
Get the int value closest to the floor of the numerical quantity value that this
quantity would have if expressed in the unit targetUnit .
|
long |
IQuantity.clampedLongValueIn(IUnit targetUnit) |
Get the long value closest to the numerical quantity value that this quantity would
have if expressed in the unit targetUnit .
|
double |
IQuantity.doubleValueIn(IUnit targetUnit) |
Get the numerical quantity value that this quantity would have if expressed in the unit
targetUnit , as a double .
|
static <U extends TypedUnit<U>> String |
KindOfQuantity.format(Number number,
IUnit unit) |
Convenience method (possibly temporary) until type parameters has settled.
|
static String |
UnitLookup.getUnitIdentifier(IUnit unit) |
|
IQuantity |
IQuantity.in(IUnit targetUnit) |
Get this quantity expressed in the unit targetUnit .
|
long |
IQuantity.longValueIn(IUnit targetUnit) |
Get the numerical quantity value that this quantity would have if expressed in the unit
targetUnit , rounded to a mathematical integer, if that numerical value can be
represented in a long .
|
long |
IQuantity.longValueIn(IUnit targetUnit,
long maxAbsValue) |
Get the numerical quantity value that this quantity would have if expressed in the unit
targetUnit , rounded to a mathematical integer, if that numerical value is in the
range [-maxAbsValue-1, maxAbsValue] .
|
Number |
IQuantity.numberValueIn(IUnit targetUnit) |
Get the numerical quantity value that this quantity would have if expressed in the unit
targetUnit , as either a Long or a Number with at least the precision
of double .
|
IScalarAffineTransform |
IUnit.valueTransformTo(IUnit targetUnit) |
Get a transform for transforming numerical quantity values expressed in this unit to
numerical quantity values expressed in targetUnit .
|
IScalarAffineTransform |
TypedUnit.valueTransformTo(IUnit targetUnit) |
|