Package | Description |
---|---|
ucar.units |
Provides support for parsing and formatting string unit specification,
converting numerical values between compatible units, and performing arithmetic
on units (such as dividing one unit by another).
|
Modifier and Type | Class and Description |
---|---|
class |
StandardUnitDB
Provides support for a database of standard units.
|
class |
UnitDBImpl
Provides most of a concrete implementation of a database of units.
|
Modifier and Type | Method and Description |
---|---|
UnitDB |
UnitSystem.getBaseUnitDB()
Returns the database of base units.
|
UnitDB |
UnitSystemImpl.getBaseUnitDB()
Returns the base unit database.
|
UnitDB |
UnitSystem.getUnitDB()
Returns the complete database of units (base units and
derived units acceptable for use in the system of units.
|
UnitDB |
UnitSystemImpl.getUnitDB()
Returns the complete unit database.
|
static UnitDB |
UnitDBManager.instance()
Gets the default unit database.
|
Modifier and Type | Method and Description |
---|---|
Unit |
StandardUnitFormat.basicExpr(UnitDB unitDB) |
Unit |
StandardUnitFormat.logExpr(UnitDB unitDB) |
Unit |
UnitFormat.parse(String spec,
UnitDB unitDB)
Parses a unit specification.
|
Unit |
StandardUnitFormat.parse(String spec,
UnitDB unitDB)
Decodes a unit specification.
|
Unit |
StandardUnitFormat.powerExpr(UnitDB unitDB) |
Unit |
StandardUnitFormat.productExpr(UnitDB unitDB) |
static void |
UnitDBManager.setInstance(UnitDB instance)
Sets the default unit database.
|
Unit |
StandardUnitFormat.shiftExpr(UnitDB unitDB) |
Unit |
StandardUnitFormat.unitIdentifier(UnitDB unitDB) |
Unit |
StandardUnitFormat.unitSpec(UnitDB unitDB) |
Copyright © 1999–2017 UCAR/Unidata. All rights reserved.