Package | Description |
---|---|
javax.measure |
Specifies Java packages for the programmatic, type safe handling
of quantities and their expression as values of units.
|
javax.measure.spi |
[OPTIONAL] The Units of Measurement SPI.
|
Modifier and Type | Method | Description |
---|---|---|
Quantity.Scale |
Quantity.getScale() |
Returns the
Scale of this Quantity , if it's absolute or relative. |
static Quantity.Scale |
Quantity.Scale.valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Quantity.Scale[] |
Quantity.Scale.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method | Description |
---|---|---|
Quantity<Q> |
QuantityFactory.create(Number value,
Unit<Q> unit,
Quantity.Scale scale) |
Returns the quantity for the specified number stated in the specified unit and scale.
|
Copyright © 2014–2019 Jean-Marie Dautelle, Werner Keil, Otavio Santana. All rights reserved.