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 | Method and Description |
---|---|
void |
UnitDB.addAlias(String alias,
String name)
Adds an alias for a unit to the database.
|
void |
UnitDB.addAlias(String alias,
String name,
String symbol)
Adds an alias for a unit to the database.
|
void |
UnitDB.addAlias(String alias,
String name,
String symbol,
String plural)
Adds an alias for a unit to the database.
|
void |
UnitDB.addAlias(UnitID id,
String name)
Adds an alias for a unit to the database.
|
void |
UnitDB.addSymbol(String symbol,
String name)
Adds a symbol for a unit to the database.
|
void |
UnitDB.addUnit(Unit unit)
Adds a unit to the database.
|
Unit |
UnitDB.get(String id)
Gets the unit in the database whose name, plural, or symbol, match an
identifier.
|
Unit |
UnitDB.getByName(String name)
Gets a unit in the database by name.
|
Unit |
UnitDB.getBySymbol(String symbol)
Gets a unit in the database by symbol.
|
Copyright © 1999–2015 UCAR/Unidata. All rights reserved.