Quantity result
Quantity, Unit
| Modifier and Type | Method and Description |
|---|---|
| public Quantity | |
| public Quantity | |
| public Unit | Returns: the system unit for this factory.Returns the system unit for quantities produced by this factory or |
| create | back to summary |
|---|---|
| public Quantity Returns the quantity for the specified number stated in the specified unit and scale. | |
| create | back to summary |
|---|---|
| public Quantity Returns the quantity for the specified number stated in the specified unit. | |
| getSystemUnit | back to summary |
|---|---|
| public Unit Returns the system unit for quantities produced by this factory or Because the system unit is unique by quantity type, it can be be used to identify the quantity given the unit. For example:
static boolean isAngularSpeed(Unit<?> unit) {
return unit.getSystemUnit().equals(RADIAN.divide(SECOND));
}
assert isAngularSpeed(REVOLUTION.divide(MINUTE)); // Returns true.
| |