public class UnitConversion extends Object
This object contains routines to create UnitConverters and manage a local dictionary of units.
Constructor and Description |
---|
UnitConversion() |
Modifier and Type | Method and Description |
---|---|
static UnitConverter |
createConverterToSI(String uom)
Helper mehod to get the converter directly from the uom string
|
static UnitConverter |
getConverter(Unit sourceUnit,
Unit destUnit)
Helper method to create the right converter given
the specified source and destination units.
|
public static UnitConverter createConverterToSI(String uom)
uom
- public static UnitConverter getConverter(Unit sourceUnit, Unit destUnit)
sourceUnit
- destUnit
- Copyright © 2016 Sensia Software LLC. All rights reserved.