| Package | Description |
|---|---|
| javax.measure.converter |
Provides support for unit conversion.
|
| javax.measure.unit |
Provides support for programatic unit handling.
|
| org.jscience.economics.money |
Provides support for monetary quantities and their currencies.
|
| org.jscience.physics.model |
Provides models for physical quantities.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AddConverter
This class represents a converter adding a constant offset
(approximated as a
double) to numeric values. |
class |
LogConverter
This class represents a logarithmic converter.
|
class |
MultiplyConverter
This class represents a converter multiplying numeric values by a
constant scaling factor (approximated as a
double). |
class |
RationalConverter
This class represents a converter multiplying numeric values by an
exact scaling factor (represented as the quotient of two
long numbers). |
| Modifier and Type | Field and Description |
|---|---|
static UnitConverter |
UnitConverter.IDENTITY
Holds the identity converter (unique).
|
| Modifier and Type | Method and Description |
|---|---|
UnitConverter |
AddConverter.concatenate(UnitConverter converter) |
UnitConverter |
MultiplyConverter.concatenate(UnitConverter converter) |
UnitConverter |
RationalConverter.concatenate(UnitConverter converter) |
UnitConverter |
UnitConverter.concatenate(UnitConverter converter)
Concatenates this converter with another converter.
|
UnitConverter |
AddConverter.inverse() |
UnitConverter |
LogConverter.inverse() |
UnitConverter |
MultiplyConverter.inverse() |
UnitConverter |
RationalConverter.inverse() |
abstract UnitConverter |
UnitConverter.inverse()
Returns the inverse of this converter.
|
| Modifier and Type | Method and Description |
|---|---|
UnitConverter |
AddConverter.concatenate(UnitConverter converter) |
UnitConverter |
MultiplyConverter.concatenate(UnitConverter converter) |
UnitConverter |
RationalConverter.concatenate(UnitConverter converter) |
UnitConverter |
UnitConverter.concatenate(UnitConverter converter)
Concatenates this converter with another converter.
|
| Modifier and Type | Method and Description |
|---|---|
UnitConverter |
Unit.getConverterTo(Unit<?> that)
Returns a converter of numeric values from this unit to another unit.
|
UnitConverter |
Dimension.Model.getTransform(BaseUnit<?> unit)
Returns the normalization transform of the specified base unit
(
IDENTITY if the base unit is
not recognized). |
UnitConverter |
TransformedUnit.toParentUnit()
Returns the converter to the parent unit.
|
UnitConverter |
AlternateUnit.toStandardUnit() |
UnitConverter |
BaseUnit.toStandardUnit() |
UnitConverter |
CompoundUnit.toStandardUnit() |
UnitConverter |
ProductUnit.toStandardUnit() |
UnitConverter |
TransformedUnit.toStandardUnit() |
abstract UnitConverter |
Unit.toStandardUnit()
Returns the converter from this unit to its system unit.
|
| Modifier and Type | Method and Description |
|---|---|
Unit<Q> |
Unit.transform(UnitConverter operation)
Returns the unit derived from this unit using the specified converter.
|
| Modifier and Type | Method and Description |
|---|---|
UnitConverter |
Currency.toStandardUnit() |
| Modifier and Type | Method and Description |
|---|---|
UnitConverter |
HighEnergyModel.getTransform(BaseUnit<?> unit) |
UnitConverter |
NaturalModel.getTransform(BaseUnit<?> unit) |
UnitConverter |
QuantumModel.getTransform(BaseUnit<?> unit) |
UnitConverter |
RelativisticModel.getTransform(BaseUnit<?> unit) |
UnitConverter |
StandardModel.getTransform(BaseUnit<?> unit) |