Package ucar.units
Interface UnitSystem
-
- All Known Implementing Classes:
SI
,UnitSystemImpl
public interface UnitSystem
Interface for a system of units.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BaseUnit
getBaseUnit(BaseQuantity quantity)
Returns the base unit corresponding to a base quantity.UnitDB
getBaseUnitDB()
Returns the database of base units.UnitDB
getUnitDB()
Returns the complete database of units (base units and derived units acceptable for use in the system of units.
-
-
-
Method Detail
-
getBaseUnitDB
UnitDB getBaseUnitDB()
Returns the database of base units.- Returns:
- The database of base units.
-
getUnitDB
UnitDB getUnitDB()
Returns the complete database of units (base units and derived units acceptable for use in the system of units.- Returns:
- The complete database of units.
-
getBaseUnit
BaseUnit getBaseUnit(BaseQuantity quantity)
Returns the base unit corresponding to a base quantity.- Parameters:
quantity
- A base quantity.- Returns:
- The base unit corresponding to the base
quantity or
null
if no such unit exists.
-
-