Package | Description |
---|---|
tec.uom.se |
This package provides a Java SE 8 implementation of the
Units of Measurement API.
|
tec.uom.se.unit |
This package provides supports for physics units, in conformity with the
Units of Measurement API.
|
Modifier and Type | Method and Description |
---|---|
<T extends javax.measure.Quantity<T>> |
AbstractUnit.asType(Class<T> type)
Casts this unit to a parameterized unit of specified nature or throw a ClassCastException if the dimension of the specified quantity and this
unit's dimension do not match (regardless whether or not the dimensions are independent or not).
|
AbstractUnit<Q> |
AbstractUnit.divide(double divisor)
Returns the result of dividing this unit by the specifified divisor.
|
AbstractUnit<Q> |
AbstractUnit.getSystemUnit()
Returns the system unit (unscaled SI unit) from which this unit is derived.
|
AbstractUnit<Q> |
AbstractUnit.multiply(double factor) |
AbstractUnit<Q> |
AbstractUnit.shift(double offset) |
protected abstract AbstractUnit<Q> |
AbstractUnit.toSystemUnit()
Returns the unscaled
SI unit from which this unit is derived. |
AbstractUnit<Q> |
AbstractUnit.transform(javax.measure.UnitConverter operation) |
Modifier and Type | Method and Description |
---|---|
javax.measure.Unit<?> |
AbstractUnit.divide(AbstractUnit<?> that)
Returns the quotient of this physical unit with the one specified.
|
javax.measure.Unit<?> |
AbstractUnit.multiply(AbstractUnit<?> that)
Returns the product of this physical unit with the one specified.
|
Modifier and Type | Class and Description |
---|---|
class |
AlternateUnit<Q extends javax.measure.Quantity<Q>>
This class represents units used in expressions to distinguish between quantities of a different nature but of the same dimensions.
|
class |
AnnotatedUnit<Q extends javax.measure.Quantity<Q>>
This class represents an annotated unit.
|
class |
BaseUnit<Q extends javax.measure.Quantity<Q>>
This class represents the building blocks on top of which all others physical units are created.
|
class |
ProductUnit<Q extends javax.measure.Quantity<Q>>
This class represents units formed by the product of rational powers of existing physical units.
|
class |
TransformedUnit<Q extends javax.measure.Quantity<Q>>
This class represents the units derived from other units using converters.
|
Modifier and Type | Method and Description |
---|---|
AbstractUnit<Q> |
AnnotatedUnit.getActualUnit()
Returns the actual unit of this annotated unit (never an annotated unit itself).
|
AbstractUnit<Q> |
TransformedUnit.toSystemUnit() |
AbstractUnit<Q> |
BaseUnit.toSystemUnit() |
AbstractUnit<Q> |
AlternateUnit.toSystemUnit() |
AbstractUnit<Q> |
AnnotatedUnit.toSystemUnit() |
AbstractUnit<Q> |
ProductUnit.toSystemUnit() |
Modifier and Type | Method and Description |
---|---|
Map<? extends AbstractUnit<Q>,Integer> |
BaseUnit.getBaseUnits() |
Modifier and Type | Method and Description |
---|---|
static javax.measure.Unit<?> |
ProductUnit.getRootInstance(AbstractUnit<?> unit,
int n)
Returns the product unit corresponding to the specified root of the specified unit.
|
Constructor and Description |
---|
AnnotatedUnit(AbstractUnit<Q> actualUnit,
String annotation)
Creates an annotated unit equivalent to the specified unit.
|
Copyright © 2005-2018 Units of Measurement project. All Rights Reserved.