public class UnitConversionHandler extends Object implements MicroPropsGenerator
| Constructor and Description |
|---|
UnitConversionHandler(MeasureUnit targetUnit,
MicroPropsGenerator parent) |
| Modifier and Type | Method and Description |
|---|---|
MicroProps |
processQuantity(DecimalQuantity quantity)
Obtains the appropriate output values from the Unit Converter.
|
public UnitConversionHandler(MeasureUnit targetUnit, MicroPropsGenerator parent)
targetUnit - Specifies the output MeasureUnit. The input MeasureUnit
is derived from it: in case of a mixed unit, the biggest unit is
taken as the input unit. If not a mixed unit, the input unit will be
the same as the output unit and no unit conversion takes place.parent - The parent MicroPropsGenerator.public MicroProps processQuantity(DecimalQuantity quantity)
processQuantity in interface MicroPropsGeneratorquantity - The quantity for consideration and optional mutation.