Modifier and Type | Method and Description |
---|---|
Unit |
UnitManager.findUnit(String unitSymbol)
Find corresponding unit instance for the given unit symbol.
|
Unit |
Quantity.getBaseUnit()
Return the base unit of this quantity.
|
Modifier and Type | Method and Description |
---|---|
List<Unit> |
UnitManager.findConvertibleUnits(String unitSymbol)
Return all units that are convertible with the unit of the specified
symbol.
|
List<Unit> |
UnitManager.findConvertibleUnits(Unit unit)
Return all units that are convertible with the specified unit.
|
List<Unit> |
Quantity.getUnits()
Return the units of this quantity.
|
Modifier and Type | Method and Description |
---|---|
void |
Quantity.addUnit(Unit unit,
boolean isBaseUnit)
Associate the specified unit with this quantity.
|
boolean |
UnitManager.canConvert(Unit unit1,
Unit unit2)
Check if it is possible to convert between the two specified units.
|
static double |
UnitManager.convert(Unit fromUnit,
Unit toUnit,
double value)
Convert the specified value between the two given units.
|
List<Unit> |
UnitManager.findConvertibleUnits(Unit unit)
Return all units that are convertible with the specified unit.
|
List<Quantity> |
UnitManager.findQuantities(Unit unit)
Return all quantities that includes the specified unit.
|
Quantity |
UnitManager.findQuantity(Unit unit)
Find quantity of the specified unit.
|
String |
UnitManager.getDisplaySymbol(Unit unit)
Return the display symbol for the specified unit.
|
void |
UnitManager.setDisplaySymbol(Unit unit,
String displaySymbol)
Set the specified display symbol for the given unit.
|
Copyright © 2020 Petroware AS - https://petroware.no