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.addSymbol(String symbol,
String name)
Adds a symbol for a unit to the database.
|
void |
UnitDBImpl.addUnit(Unit unit)
Adds a unit to the database.
|
void |
UnitDB.addUnit(Unit unit)
Adds a unit to the database.
|
static UnknownUnit |
UnknownUnit.create(String name)
Factory method for constructing an unknown unit from a name.
|
static BaseUnit |
BaseUnit.getOrCreate(UnitName id,
BaseQuantity baseQuantity)
Factory method for creating a new BaseUnit or obtaining a
previously-created one.
|
static UnitName |
UnitName.newUnitName(String name)
Factory method for constructing a UnitName from a name.
|
static UnitName |
UnitName.newUnitName(String name,
String plural)
Factory method for constructing a UnitName from a name and a plural form
of the name.
|
static UnitName |
UnitName.newUnitName(String name,
String plural,
String symbol)
Factory method for constructing a UnitName from a name, a plural form of
the name, and a symbol.
|
Constructor and Description |
---|
BaseQuantity(String name,
String symbol)
Constructs from a name and a symbol.
|
BaseUnit(UnitName id,
BaseQuantity baseQuantity)
Constructs from identifiers and a base quantity.
|
RegularBaseQuantity(String name,
String symbol)
Constructs from a name and symbol.
|
SupplementaryBaseQuantity(String name,
String symbol)
Constructs from a name and symbol.
|
UnitName(String name,
String symbol)
Constructs from a name and a symbol.
|
UnitName(String name,
String plural,
String symbol)
Constructs from a name, a plural form of the unit name, and a symbol.
|
UnitSymbol(String symbol)
Constructs from a symbol.
|
Copyright © 1999–2017 UCAR/Unidata. All rights reserved.