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 |
UnitDBImpl.add(UnitDBImpl that)
Adds all the entries in another UnitDBImpl to this database.
|
void |
UnitDB.addAlias(String alias,
String name)
Adds an alias for a unit to the database.
|
void |
UnitDBImpl.addAlias(String alias,
String name)
Adds an alias for a unit already in the database.
|
void |
UnitDB.addAlias(String alias,
String name,
String symbol)
Adds an alias for a unit to the database.
|
void |
UnitDBImpl.addAlias(String alias,
String name,
String symbol)
Adds an alias for a unit already in the database.
|
void |
UnitDB.addAlias(String alias,
String name,
String symbol,
String plural)
Adds an alias for a unit to the database.
|
void |
UnitDBImpl.addAlias(String alias,
String name,
String symbol,
String plural)
Adds an alias for a unit already in the database.
|
void |
UnitDB.addAlias(UnitID id,
String name)
Adds an alias for a unit to the database.
|
void |
UnitDBImpl.addAlias(UnitID alias,
String name)
Adds an alias for a unit already in the database.
|
void |
UnitDB.addSymbol(String symbol,
String name)
Adds a symbol for a unit to the database.
|
void |
UnitDBImpl.addSymbol(String symbol,
String name)
Adds a symbol for a unit already in the database.
|
void |
UnitDB.addUnit(Unit unit)
Adds a unit to the database.
|
void |
UnitDBImpl.addUnit(Unit unit)
Adds a unit to the database.
|
static BaseUnit |
BaseUnit.getOrCreate(UnitName id,
BaseQuantity baseQuantity)
Factory method for creating a new BaseUnit or obtaining a
previously-created one.
|
Constructor and Description |
---|
UnitSystemImpl(UnitDBImpl baseUnitDB,
UnitDBImpl derivedUnitDB)
Constructs from a base unit database and a derived unit database.
|
Copyright © 1999–2016 UCAR/Unidata. All rights reserved.