Uses of Class
tech.units.indriya.AbstractUnit
-
Packages that use AbstractUnit Package Description tech.units.indriya This package provides a Java SE 8 implementation of the Units of Measurement API.tech.units.indriya.format tech.units.indriya.unit This package provides supports for physics units, in conformity with the Units of Measurement API. -
-
Uses of AbstractUnit in tech.units.indriya
Methods in tech.units.indriya that return AbstractUnit Modifier and Type Method Description <T extends javax.measure.Quantity<T>>
AbstractUnit<T>AbstractUnit. asType(java.lang.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. prefix(Prefix prefix)
Methods in tech.units.indriya with parameters of type AbstractUnit Modifier and Type Method Description 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. -
Uses of AbstractUnit in tech.units.indriya.format
Methods in tech.units.indriya.format with parameters of type AbstractUnit Modifier and Type Method Description (package private) java.lang.StringBuilder
AbstractUnitFormat. format(AbstractUnit<?> unit, java.lang.StringBuilder dest)
Convenience method equivalent to#format(AbstractUnit, Appendable)
except it does not raise an IOException. -
Uses of AbstractUnit in tech.units.indriya.unit
Subclasses of AbstractUnit in tech.units.indriya.unit Modifier and Type Class 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.Fields in tech.units.indriya.unit declared as AbstractUnit Modifier and Type Field Description private AbstractUnit<Q>
AnnotatedUnit. actualUnit
Holds the actual unit.static AbstractUnit<javax.measure.quantity.Temperature>
Units. CELSIUS
The SI unit for Celsius temperature (standard nameCel
).static AbstractUnit<javax.measure.quantity.Mass>
Units. KILOGRAM
The SI base unit for mass quantities (standard namekg
).static AbstractUnit<javax.measure.quantity.ElectricResistance>
Units. OHM
The SI unit for electric resistance (standard nameOhm
).private AbstractUnit<Q>
TransformedUnit. parentUnit
Holds the parent unit.Methods in tech.units.indriya.unit with type parameters of type AbstractUnit Modifier and Type Method Description private static <U extends AbstractUnit<?>>
UUnits. addUnit(U unit, java.lang.Class<? extends javax.measure.Quantity<?>> type)
Adds a new unit and maps it to the specified quantity type.Methods in tech.units.indriya.unit that return AbstractUnit Modifier and Type Method Description AbstractUnit<Q>
AnnotatedUnit. getActualUnit()
Returns the actual unit of this annotated unit (never an annotated unit itself).Methods in tech.units.indriya.unit that return types with arguments of type AbstractUnit Modifier and Type Method Description java.util.Map<? extends AbstractUnit<Q>,java.lang.Integer>
BaseUnit. getBaseUnits()
Constructors in tech.units.indriya.unit with parameters of type AbstractUnit Constructor Description AnnotatedUnit(AbstractUnit<Q> actualUnit, java.lang.String annotation)
Creates an annotated unit equivalent to the specified unit.
-