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 |
BadUnitException
Provides support for failures due to attempts to redefine an existing unit in
a unit database.
|
class |
UnitDBAccessException
Provides support for failure to access unit database (e.g.
|
class |
UnitExistsException
Provides support for failures due to attempts to redefine an existing unit in
a unit database.
|
Modifier and Type | Method and Description |
---|---|
Unit |
StandardUnitFormat.basicExpr(UnitDB unitDB) |
static StandardUnitDB |
StandardUnitDB.instance()
Gets an instance of this database.
|
static UnitDB |
UnitDBManager.instance()
Gets the default unit database.
|
Unit |
StandardUnitFormat.logExpr(UnitDB unitDB) |
Unit |
UnitFormat.parse(String spec)
Parses a unit specification.
|
Unit |
UnitFormatImpl.parse(String spec)
Parses a unit specification.
|
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) |
Unit |
StandardUnitFormat.shiftExpr(UnitDB unitDB) |
Unit |
StandardUnitFormat.unitIdentifier(UnitDB unitDB) |
Unit |
StandardUnitFormat.unitSpec(UnitDB unitDB) |
Copyright © 1999–2016 UCAR/Unidata. All rights reserved.