| Package | Description |
|---|---|
| tech.units.indriya |
This package provides a Java SE 8 implementation of the
Units of Measurement API.
|
| tech.units.indriya.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).
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
AbstractUnit.Equalizer.areEqual(AbstractUnit u1,
AbstractUnit u2)
Indicates if this unit is considered equals to the specified object.
|
static boolean |
AbstractUnit.Equalizer.areEqual(AbstractUnit u1,
AbstractUnit u2)
Indicates if this unit is considered equals to the specified object.
|
protected javax.measure.Unit<?> |
AbstractUnit.divide(AbstractUnit<?> that)
Returns the quotient of this physical unit with the one specified.
|
protected 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).
|
| Modifier and Type | Method and Description |
|---|---|
Map<? extends AbstractUnit<Q>,Integer> |
BaseUnit.getBaseUnits() |
| 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.