Uses of Interface
javax.measure.Unit
Packages that use Unit
Package
Description
Specifies Java packages for the programmatic, type safe handling
of quantities and their expression as values of units.
[OPTIONAL] Provides Formatting and Parsing functionality for units, quantities, dimensions or their textual representation.
[OPTIONAL] The Units of Measurement SPI.
-
Uses of Unit in javax.measure
Methods in javax.measure that return UnitModifier and TypeMethodDescriptionReturns a system unit equivalent to this unscaled standard unit but used in expressions to distinguish between quantities of a different nature but of the same dimensions.Casts this unit to a parameterized unit of specified nature or throw aClassCastExceptionif the dimension of the specified quantity and this unit's dimension do not match.Returns the specified unit multiplied by the factor10-18Returns the specified unit multiplied by the factor10-2Returns the specified unit multiplied by the factor101Returns the specified unit multiplied by the factor10-1US alias forDECA.Unit.divide(double divisor) Returns the result of dividing this unit by an approximate divisor.Returns the result of dividing this unit by a divisor.Unit<?>Returns the quotient of this unit with the one specified.Returns the specified unit multiplied by the factor1018Returns the specified unit multiplied by the factor10246(binary prefix).Returns the specified unit multiplied by the factor10-15Unit.getSystemUnit()Returns the unscaled system unit from which this unit is derived.Quantity.getUnit()Returns the unit of thisQuantity.Returns the specified unit multiplied by the factor10243(binary prefix).Returns the specified unit multiplied by the factor109Returns the specified unit multiplied by the factor102Unit<?>Unit.inverse()Returns the reciprocal (multiplicative inverse) of this unit.Returns the specified unit multiplied by the factor1024(binary prefix).Returns the specified unit multiplied by the factor103Returns the specified unit multiplied by the factor10242(binary prefix).Returns the specified unit multiplied by the factor106Returns the specified unit multiplied by the factor10-6Returns the specified unit multiplied by the factor10-3Unit.multiply(double multiplier) Returns the result of multiplying this unit by the specified factor.Returns the result of multiplying this unit by the specified factor.Unit<?>Returns the product of this unit with the one specified.Returns the specified unit multiplied by the factor10-9Returns the specified unit multiplied by the factor10245(binary prefix).Returns the specified unit multiplied by the factor1015Returns the specified unit multiplied by the factor10-12Unit<?>Unit.pow(int n) Returns an unit raised to the n-th (integer) power of this unit.Returns a new unit equal to this unit prefixed by the specifiedprefix.Returns the specified unit multiplied by the factor10-30Returns the specified unit multiplied by the factor1030Returns the specified unit multiplied by the factor1027Returns the specified unit multiplied by the factor10-27Unit<?>Unit.root(int n) Returns an unit that is the n-th (integer) root of this unit.Unit.shift(double offset) Returns the result of setting the origin of the scale of measurement to the given value.Returns the result of setting the origin of the scale of measurement to the given value.Returns the specified unit multiplied by the factor10244(binary prefix).Returns the specified unit multiplied by the factor1012Unit.transform(UnitConverter operation) Returns the unit derived from this unit using the specified converter.Returns the specified unit multiplied by the factor10248(binary prefix).Returns the specified unit multiplied by the factor10-24Returns the specified unit multiplied by the factor1024Returns the specified unit multiplied by the factor10247(binary prefix).Returns the specified unit multiplied by the factor10-21Returns the specified unit multiplied by the factor1021Methods in javax.measure that return types with arguments of type UnitModifier and TypeMethodDescriptionUnit.getBaseUnits()Returns the base units and their exponent whose product is this unit, ornullif this unit is a base unit (not a product of existing units).Methods in javax.measure with parameters of type UnitModifier and TypeMethodDescriptionReturns the specified unit multiplied by the factor10-18Returns the specified unit multiplied by the factor10-2Returns the specified unit multiplied by the factor101Returns the specified unit multiplied by the factor10-1US alias forDECA.Unit<?>Returns the quotient of this unit with the one specified.Returns the specified unit multiplied by the factor1018Returns the specified unit multiplied by the factor10246(binary prefix).Returns the specified unit multiplied by the factor10-15Unit.getConverterTo(Unit<Q> that) Returns a converter of numeric values from this unit to another unit of same type.Unit.getConverterToAny(Unit<?> that) Returns a converter from this unit to the specified unit of type unknown.Returns the specified unit multiplied by the factor10243(binary prefix).Returns the specified unit multiplied by the factor109Returns the specified unit multiplied by the factor102booleanUnit.isCompatible(Unit<?> that) Indicates if this unit is compatible with the unit specified.booleanUnit.isEquivalentTo(Unit<Q> that) Indicates if this unit represents the same quantity than the given unit, ignoring name and symbols.Returns the specified unit multiplied by the factor1024(binary prefix).Returns the specified unit multiplied by the factor103Returns the specified unit multiplied by the factor10242(binary prefix).Returns the specified unit multiplied by the factor106Returns the specified unit multiplied by the factor10-6Returns the specified unit multiplied by the factor10-3Unit<?>Returns the product of this unit with the one specified.Returns the specified unit multiplied by the factor10-9Returns the specified unit multiplied by the factor10245(binary prefix).Returns the specified unit multiplied by the factor1015Returns the specified unit multiplied by the factor10-12Returns the specified unit multiplied by the factor10-30Returns the specified unit multiplied by the factor1030Returns the specified unit multiplied by the factor1027Returns the specified unit multiplied by the factor10-27Returns the specified unit multiplied by the factor10244(binary prefix).Returns the specified unit multiplied by the factor1012Returns thisQuantityconverted into another (compatible)Unit.Returns the specified unit multiplied by the factor10248(binary prefix).Returns the specified unit multiplied by the factor10-24Returns the specified unit multiplied by the factor1024Returns the specified unit multiplied by the factor10247(binary prefix).Returns the specified unit multiplied by the factor10-21Returns the specified unit multiplied by the factor1021 -
Uses of Unit in javax.measure.format
Methods in javax.measure.format that return UnitModifier and TypeMethodDescriptionUnit<?>UnitFormat.parse(CharSequence csq) Parses the text into an instance ofUnit.Unit<?>UnitFormat.parse(CharSequence csq, ParsePosition pos) Parses a portion of the specifiedCharSequencefrom the specified position to produce aUnit.Methods in javax.measure.format with parameters of type Unit -
Uses of Unit in javax.measure.spi
Methods in javax.measure.spi that return UnitModifier and TypeMethodDescriptionQuantityFactory.getSystemUnit()Returns the system unit for quantities produced by this factory ornullif unknown.Returns the default unit for the specified quantity ornullif none is defined for the given quantity in this unit system.Unit<?>Returns a unit with the given string representation ornullif none is found in this unit system.Methods in javax.measure.spi that return types with arguments of type UnitModifier and TypeMethodDescriptionSystemOfUnits.getUnits()Returns a read only view over the units explicitly defined by this system.Returns the units defined in this system having the specified dimension (convenience method).Methods in javax.measure.spi with parameters of type UnitModifier and TypeMethodDescriptionReturns the quantity for the specified number stated in the specified unit.QuantityFactory.create(Number value, Unit<Q> unit, Quantity.Scale scale) Returns the quantity for the specified number stated in the specified unit and scale.