Package | Description |
---|---|
javax.measure |
Provides strongly typed measurements to enforce compile-time
check of parameters consistency and avoid interface errors.
|
Modifier and Type | Method and Description |
---|---|
DecimalMeasure<Q> |
DecimalMeasure.to(Unit<Q> unit)
Returns the decimal measure equivalent to this measure but stated in the
specified unit.
|
DecimalMeasure<Q> |
DecimalMeasure.to(Unit<Q> unit,
MathContext mathContext)
Returns the decimal measure equivalent to this measure but stated in the
specified unit, the conversion is performed using the specified math
context.
|
static <Q extends Quantity> |
DecimalMeasure.valueOf(BigDecimal decimal,
Unit<Q> unit)
Returns the decimal measure for the specified number stated in the
specified unit.
|
static <Q extends Quantity> |
DecimalMeasure.valueOf(CharSequence csq)
Returns the decimal measure for the specified textual representation.
|
Copyright © 2012. All Rights Reserved.