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 |
---|---|
UnitName |
Unit.getUnitName()
Gets the identifier of this unit.
|
UnitName |
UnitImpl.getUnitName()
Gets the identifier of this unit.
|
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.
|
Modifier and Type | Method and Description |
---|---|
Unit |
OffsetUnit.clone(UnitName id)
Clones this unit, changing the identifier.
|
Unit |
ScaledUnit.clone(UnitName id)
Clones this unit, changing the identifier.
|
Unit |
Unit.clone(UnitName id)
Clones this unit, changing the identifier.
|
Unit |
DerivedUnitImpl.clone(UnitName id)
Clones the derived unit changing the identifiers.
|
Unit |
LogarithmicUnit.clone(UnitName id)
Clones this unit, changing the identifier.
|
Unit |
TimeScaleUnit.clone(UnitName id)
Clones this unit, changing the identifier.
|
static BaseUnit |
BaseUnit.getOrCreate(UnitName id,
BaseQuantity baseQuantity)
Factory method for creating a new BaseUnit or obtaining a
previously-created one.
|
Constructor and Description |
---|
BaseUnit(UnitName id,
BaseQuantity baseQuantity)
Constructs from identifiers and a base quantity.
|
DerivedUnitImpl(UnitDimension dimension,
UnitName id)
Constructs from a unit dimension and identifiers.
|
DerivedUnitImpl(UnitName id)
Constructs from identifiers.
|
LogarithmicUnit(Unit reference,
double base,
UnitName id)
Constructs from a reference level, a logarithmic base, and a unit
identifier.
|
OffsetUnit(Unit unit,
double offset,
UnitName id)
Constructs from a reference unit, and offset, and a unit identifier.
|
ScaledUnit(double scale,
Unit unit,
UnitName id)
Constructs from a multiplicative factor, a reference unit, and an
identifier.
|
TimeScaleUnit(Unit unit,
Date origin,
UnitName id)
Constructs from a reference unit, a time origin, and an identifier.
|
UnitImpl(UnitName id)
Constructs with the given ID.
|
Copyright © 1999–2019 UCAR/Unidata. All rights reserved.