- AbstractConverter - Class in tec.units.ri
-
The base class for our UnitConverter
implementations.
- AbstractConverter() - Constructor for class tec.units.ri.AbstractConverter
-
Default constructor.
- AbstractConverter.Pair - Class in tec.units.ri
-
This class represents converters made up of two or more separate converters (in matrix notation [pair] = [left] x [right]
).
- AbstractConverter.Pair(UnitConverter, UnitConverter) - Constructor for class tec.units.ri.AbstractConverter.Pair
-
Creates a compound converter resulting from the combined transformation of the specified converters.
- AbstractQuantity<Q extends javax.measure.Quantity<Q>> - Class in tec.units.ri
-
This class represents the immutable result of a scalar measurement stated in a known unit.
- AbstractQuantity(Unit<Q>) - Constructor for class tec.units.ri.AbstractQuantity
-
constructor.
- AbstractQuantity.Equalizer - Class in tec.units.ri
-
Utility class for number comparison and equality
- AbstractQuantity.Equalizer() - Constructor for class tec.units.ri.AbstractQuantity.Equalizer
-
- AbstractSystemOfUnits - Class in tec.units.ri
-
An abstract base class for unit systems.
- AbstractSystemOfUnits() - Constructor for class tec.units.ri.AbstractSystemOfUnits
-
- AbstractSystemOfUnits.Helper - Class in tec.units.ri
-
- AbstractSystemOfUnits.Helper() - Constructor for class tec.units.ri.AbstractSystemOfUnits.Helper
-
- AbstractUnit<Q extends javax.measure.Quantity<Q>> - Class in tec.units.ri
-
The class represents units founded on the seven SI base units for seven base quantities assumed to be mutually independent.
- AbstractUnit() - Constructor for class tec.units.ri.AbstractUnit
-
Default constructor.
- AbstractUnitFormat - Class in tec.units.ri.format
-
This class provides the interface for formatting and parsing
units
.
- AbstractUnitFormat() - Constructor for class tec.units.ri.format.AbstractUnitFormat
-
- add(AbstractQuantity<Q>) - Method in class tec.units.ri.quantity.NumberQuantity
-
- add(Quantity<Q>) - Method in class tec.units.ri.quantity.NumberQuantity
-
- AddConverter - Class in tec.units.ri.function
-
This class represents a converter adding a constant offset to numeric values (double
based).
- AddConverter(double) - Constructor for class tec.units.ri.function.AddConverter
-
Creates an additive converter having the specified offset.
- addUnit(Set<Unit<?>>, U, String) - Static method in class tec.units.ri.AbstractSystemOfUnits.Helper
-
Adds a new named unit to the collection.
- addUnit(Set<Unit<?>>, U, String, String, UnitStyle) - Static method in class tec.units.ri.AbstractSystemOfUnits.Helper
-
Adds a new named unit to the collection.
- addUnit(Set<Unit<?>>, U, String, UnitStyle) - Static method in class tec.units.ri.AbstractSystemOfUnits.Helper
-
Adds a new labeled unit to the set.
- addUnit(Set<Unit<?>>, U, String, String) - Static method in class tec.units.ri.AbstractSystemOfUnits.Helper
-
Adds a new named unit to the collection.
- alias(Unit<?>, String) - Method in class tec.units.ri.format.SimpleUnitFormat
-
Attaches a system-wide alias to this unit.
- alias(Unit<?>, String) - Method in class tec.units.ri.format.SimpleUnitFormat.DefaultFormat
-
- alternate(String) - Method in class tec.units.ri.AbstractUnit
-
- AlternateUnit<Q extends javax.measure.Quantity<Q>> - Class in tec.units.ri.unit
-
This class represents units used in expressions to distinguish between quantities of a different nature but of the same dimensions.
- AlternateUnit(AbstractUnit<?>, String) - Constructor for class tec.units.ri.unit.AlternateUnit
-
Creates an alternate unit for the specified system unit identified by the specified name and symbol.
- AlternateUnit(Unit<?>, String) - Constructor for class tec.units.ri.unit.AlternateUnit
-
Creates an alternate unit for the specified system unit identified by the specified name and symbol.
- AMOUNT_OF_SUBSTANCE - Static variable in class tec.units.ri.quantity.QuantityDimension
-
Holds amount of substance dimension (N).
- AMPERE - Static variable in class tec.units.ri.unit.Units
-
The SI base unit for electric current quantities (standard name A
).
- annotate(String) - Method in class tec.units.ri.AbstractUnit
-
Annotates the specified unit.
- AnnotatedUnit<Q extends javax.measure.Quantity<Q>> - Class in tec.units.ri.unit
-
This class represents an annotated unit.
- AnnotatedUnit(Unit<?>, String) - Constructor for class tec.units.ri.unit.AnnotatedUnit
-
Creates an annotated unit equivalent to the specified unit.
- asType(Class<T>) - Method in class tec.units.ri.AbstractQuantity
-
Casts this quantity to a parameterized unit of specified nature or throw a ClassCastException
if the dimension of the specified
quantity and this measure unit's dimension do not match.
- asType(Class<T>) - Method in class tec.units.ri.AbstractUnit
-
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).
- atan(double) - Static method in class tec.units.ri.internal.MathUtil
-
Return the arctangent of a, call it b, where a = tan(b).
- atan2(double, double) - Static method in class tec.units.ri.internal.MathUtil
-
For any real arguments x and y not both equal to zero, atan2(y, x) is the angle in radians between the positive x-axis of a plane and the point
given by the coordinates (x, y) on it.
- ATTO(Unit<Q>) - Static method in enum tec.units.ri.unit.MetricPrefix
-
Returns the specified unit multiplied by the factor 10-18
- FARAD - Static variable in class tec.units.ri.unit.Units
-
The SI unit for capacitance (standard name F
).
- FEMTO(Unit<Q>) - Static method in enum tec.units.ri.unit.MetricPrefix
-
Returns the specified unit multiplied by the factor 10-15
- FieldPosition - Class in tec.units.ri.internal.format.l10n
-
FieldPosition
is a simple class used by Format
and its subclasses to identify fields in formatted output.
- FieldPosition(int) - Constructor for class tec.units.ri.internal.format.l10n.FieldPosition
-
Creates a FieldPosition object for the given field.
- FieldPosition(Format.Field, int) - Constructor for class tec.units.ri.internal.format.l10n.FieldPosition
-
Creates a FieldPosition
object for the given field.
- floatValue(Unit<Q>) - Method in class tec.units.ri.AbstractQuantity
-
- format(Unit<?>) - Method in class tec.units.ri.format.AbstractUnitFormat
-
Formats an object to produce a string.
- format(Unit<?>, Appendable) - Method in class tec.units.ri.format.AbstractUnitFormat
-
Formats the specified unit.
- format(Quantity<?>, Appendable) - Method in class tec.units.ri.format.QuantityFormat
-
Formats the specified quantity into an Appendable
.
- format(Quantity<?>, StringBuilder) - Method in class tec.units.ri.format.QuantityFormat
-
Convenience method equivalent to #format(AbstractQuantity, Appendable)
except it does not raise an IOException.
- format(Quantity) - Method in class tec.units.ri.format.QuantityFormat
-
Formats an object to produce a string.
- format(Unit<?>, Appendable) - Method in class tec.units.ri.format.SimpleUnitFormat.ASCIIFormat
-
- format(Unit<?>, Appendable) - Method in class tec.units.ri.format.SimpleUnitFormat.DefaultFormat
-
- format(Unit<?>, Appendable) - Method in class tec.units.ri.format.SimpleUnitFormat
-
Formats the specified unit.
- format(Object, StringBuffer, FieldPosition) - Method in class tec.units.ri.format.SimpleUnitFormat
-
Formats an unit and appends the resulting text to a given string buffer (implements java.text.Format
).
- Format - Class in tec.units.ri.internal.format.l10n
-
Format
is an abstract base class for formatting locale-sensitive information such as dates, messages, and numbers.
- Format() - Constructor for class tec.units.ri.internal.format.l10n.Format
-
- format(Object) - Method in class tec.units.ri.internal.format.l10n.Format
-
Formats an object to produce a string.
- format(Object, StringBuffer, FieldPosition) - Method in class tec.units.ri.internal.format.l10n.Format
-
Formats an object and appends the resulting text to a given string buffer.
- format(Object, StringBuffer, FieldPosition) - Method in class tec.units.ri.internal.format.l10n.NumberFormat
-
Formats an object to produce a string.
- format(double) - Method in class tec.units.ri.internal.format.l10n.NumberFormat
-
Specialization of format.
- format(long) - Method in class tec.units.ri.internal.format.l10n.NumberFormat
-
Specialization of format.
- format(double, StringBuffer, FieldPosition) - Method in class tec.units.ri.internal.format.l10n.NumberFormat
-
Specialization of format.
- format(long, StringBuffer, FieldPosition) - Method in class tec.units.ri.internal.format.l10n.NumberFormat
-
Specialization of format.
- Format.Field - Class in tec.units.ri.internal.format.l10n
-
Defines constants that are used as attribute keys in the AttributedCharacterIterator
returned from
Format.formatToCharacterIterator
and as field identifiers in FieldPosition
.
- Format.Field(String) - Constructor for class tec.units.ri.internal.format.l10n.Format.Field
-
Creates a Field with the specified name.
- FRACTION - Static variable in class tec.units.ri.internal.format.l10n.NumberFormat.Field
-
Constant identifying the fraction field.
- FRACTION_FIELD - Static variable in class tec.units.ri.internal.format.l10n.NumberFormat
-
Field constant used to construct a FieldPosition object.
- gcd(double, double) - Static method in class tec.units.ri.internal.MathUtil
-
- getActualUnit() - Method in class tec.units.ri.unit.AnnotatedUnit
-
Returns the actual unit of this annotated unit (never an annotated unit itself).
- getAnnotation() - Method in class tec.units.ri.unit.AnnotatedUnit
-
Returns the annotation of this annotated unit.
- getAsDouble() - Method in class tec.units.ri.function.RationalConverter
-
- getAvailableFormatNames() - Method in class tec.units.ri.internal.format.DefaultUnitFormatService
-
- getAvailableSystemsOfUnits() - Method in class tec.units.ri.internal.DefaultSystemOfUnitsService
-
- getBase() - Method in class tec.units.ri.function.ExpConverter
-
Returns the exponential base of this converter.
- getBase() - Method in class tec.units.ri.function.LogConverter
-
Returns the logarithmic base of this converter.
- getBaseDimensions() - Method in class tec.units.ri.quantity.QuantityDimension
-
Returns the fundamental (base) dimensions and their exponent whose product is this dimension or null
if this dimension is a
fundamental dimension.
- getBaseUnits() - Method in class tec.units.ri.AbstractUnit
-
- getBaseUnits() - Method in class tec.units.ri.unit.AlternateUnit
-
- getBaseUnits() - Method in class tec.units.ri.unit.AnnotatedUnit
-
- getBaseUnits() - Method in class tec.units.ri.unit.BaseUnit
-
- getBaseUnits() - Method in class tec.units.ri.unit.ProductUnit
-
- getBaseUnits() - Method in class tec.units.ri.unit.TransformedUnit
-
- getBeginIndex() - Method in class tec.units.ri.internal.format.l10n.FieldPosition
-
Retrieves the index of the first character in the requested field.
- getConversionSteps() - Method in class tec.units.ri.AbstractConverter
-
- getConversionSteps() - Method in class tec.units.ri.AbstractConverter.Pair
-
- getConverter() - Method in enum tec.units.ri.unit.MetricPrefix
-
Returns the corresponding unit converter.
- getConverter() - Method in class tec.units.ri.unit.TransformedUnit
-
Returns the converter to the parent unit.
- getConverterTo(Unit<Q>) - Method in class tec.units.ri.AbstractUnit
-
- getConverterToAny(Unit<?>) - Method in class tec.units.ri.AbstractUnit
-
- getCurrencyInstance() - Static method in class tec.units.ri.internal.format.l10n.NumberFormat
-
Returns a currency format for the current default locale.
- getDimension() - Method in class tec.units.ri.AbstractUnit
-
- getDimension() - Method in class tec.units.ri.unit.AlternateUnit
-
- getDimension() - Method in class tec.units.ri.unit.AnnotatedUnit
-
- getDimension() - Method in class tec.units.ri.unit.BaseUnit
-
- getDimension() - Method in class tec.units.ri.unit.ProductUnit
-
- getDimension() - Method in class tec.units.ri.unit.TransformedUnit
-
- getDimensionalTransform(Dimension) - Method in class tec.units.ri.spi.DimensionalModel
-
Returns the dimensional transform of the specified dimension.
- getDividend() - Method in class tec.units.ri.function.RationalConverter
-
Returns the integer dividend for this rational converter.
- getDivisor() - Method in class tec.units.ri.function.RationalConverter
-
Returns the integer (positive) divisor for this rational converter.
- getEndIndex() - Method in class tec.units.ri.internal.format.l10n.FieldPosition
-
Retrieves the index of the character following the last character in the requested field.
- getErrorIndex() - Method in class tec.units.ri.internal.format.l10n.ParsePosition
-
Retrieve the index at which an error occurred, or -1 if the error index has not been set.
- getFactor() - Method in class tec.units.ri.function.MultiplyConverter
-
Returns the scale factor of this converter.
- getField() - Method in class tec.units.ri.internal.format.l10n.FieldPosition
-
Retrieves the field identifier.
- getFieldAttribute() - Method in class tec.units.ri.internal.format.l10n.FieldPosition
-
Returns the field identifier as an attribute constant from one of the Field
subclasses.
- getFundamentalDimension(Dimension) - Method in class tec.units.ri.spi.DimensionalModel
-
Returns the fundamental dimension for the one specified.
- getIndex() - Method in class tec.units.ri.internal.format.l10n.ParsePosition
-
Retrieve the current parse position.
- getInstance() - Static method in class tec.units.ri.format.QuantityFormat
-
Returns the quantity format for the default locale.
- getInstance() - Static method in class tec.units.ri.format.SimpleUnitFormat
-
- getInstance(SimpleUnitFormat.Flavor) - Static method in class tec.units.ri.format.SimpleUnitFormat
-
- getInstance() - Static method in class tec.units.ri.internal.format.l10n.NumberFormat
-
Returns a general-purpose number format.
- getInstance(Class<Q>) - Static method in class tec.units.ri.quantity.DefaultQuantityFactory
-
Returns the default instance for the specified quantity type.
- getInstance(char) - Static method in class tec.units.ri.quantity.QuantityDimension
-
Deprecated.
Use parse() instead
- getInstance(Class<Q>) - Static method in class tec.units.ri.quantity.QuantityDimension
-
- getInstance() - Static method in class tec.units.ri.unit.Units
-
Returns the unique instance of this class.
- getIntegerInstance() - Static method in class tec.units.ri.internal.format.l10n.NumberFormat
-
Returns an integer number format for the current default locale.
- getLeft() - Method in class tec.units.ri.AbstractConverter.Pair
-
- getMaximum() - Method in class tec.units.ri.spi.Range
-
Returns the largest value of the measurement range.
- getMaximumFractionDigits() - Method in class tec.units.ri.internal.format.l10n.NumberFormat
-
Returns the maximum number of digits allowed in the fraction portion of a number.
- getMaximumIntegerDigits() - Method in class tec.units.ri.internal.format.l10n.NumberFormat
-
Returns the maximum number of digits allowed in the integer portion of a number.
- getMinimum() - Method in class tec.units.ri.spi.Range
-
Returns the smallest value of the range.
- getMinimumFractionDigits() - Method in class tec.units.ri.internal.format.l10n.NumberFormat
-
Returns the minimum number of digits allowed in the fraction portion of a number.
- getMinimumIntegerDigits() - Method in class tec.units.ri.internal.format.l10n.NumberFormat
-
Returns the minimum number of digits allowed in the integer portion of a number.
- getName() - Method in class tec.units.ri.AbstractSystemOfUnits
-
- getName() - Method in class tec.units.ri.AbstractUnit
-
- getName() - Method in class tec.units.ri.unit.Units
-
- getNumberInstance() - Static method in class tec.units.ri.internal.format.l10n.NumberFormat
-
Returns a general-purpose number format for the current default locale.
- getOffset() - Method in class tec.units.ri.function.AddConverter
-
Returns the offset value for this add converter.
- getParentUnit() - Method in class tec.units.ri.unit.AlternateUnit
-
Returns the parent unit of this alternate unit, always a system unit and never an alternate unit.
- getParentUnit() - Method in class tec.units.ri.unit.TransformedUnit
-
Returns the parent unit for this unit.
- getPercentInstance() - Static method in class tec.units.ri.internal.format.l10n.NumberFormat
-
Returns a percentage format for the current default locale.
- getPriority() - Method in class tec.units.ri.internal.DefaultSystemOfUnitsService
-
- getPriority() - Method in class tec.units.ri.internal.format.DefaultUnitFormatService
-
- getPriority() - Method in class tec.units.ri.spi.DefaultServiceProvider
-
- getProductInstance(AbstractUnit<?>, AbstractUnit<?>) - Static method in class tec.units.ri.unit.ProductUnit
-
Returns the product of the specified units.
- getQuantity(CharSequence) - Static method in class tec.units.ri.quantity.Quantities
-
Returns the numeric
quantity of unknown type corresponding to the specified representation.
- getQuantity(Number, Unit<Q>) - Static method in class tec.units.ri.quantity.Quantities
-
Returns the scalar measurement in the specified unit.
- getQuantityFactory(Class<Q>) - Method in class tec.units.ri.spi.DefaultServiceProvider
-
Return a factory for this quantity
- getQuotientInstance(Unit<?>, Unit<?>) - Static method in class tec.units.ri.unit.ProductUnit
-
Returns the quotient of the specified units.
- getResolution() - Method in class tec.units.ri.quantity.QuantityRange
-
Returns the resolution of the measurement range.
- getRight() - Method in class tec.units.ri.AbstractConverter.Pair
-
- getRootInstance(AbstractUnit<?>, int) - Static method in class tec.units.ri.unit.ProductUnit
-
Returns the product unit corresponding to the specified root of the specified unit.
- getService(Class<T>) - Method in class tec.units.ri.spi.DefaultServiceProvider
-
- getServices(Class<T>) - Method in class tec.units.ri.spi.DefaultServiceProvider
-
Loads and registers services.
- getSymbol() - Method in class tec.units.ri.AbstractUnit
-
- getSymbol() - Method in class tec.units.ri.unit.AlternateUnit
-
- getSymbol() - Method in class tec.units.ri.unit.AnnotatedUnit
-
- getSymbol() - Method in class tec.units.ri.unit.BaseUnit
-
- getSymbol() - Method in enum tec.units.ri.unit.MetricPrefix
-
Returns the symbol of this prefix.
- getSymbol() - Method in class tec.units.ri.unit.ProductUnit
-
- getSymbol() - Method in class tec.units.ri.unit.TransformedUnit
-
- getSystemConverter() - Method in class tec.units.ri.AbstractUnit
-
Returns the converter from this unit to its unscaled
standard
unit.
- getSystemConverter() - Method in class tec.units.ri.unit.AlternateUnit
-
- getSystemConverter() - Method in class tec.units.ri.unit.AnnotatedUnit
-
- getSystemConverter() - Method in class tec.units.ri.unit.BaseUnit
-
- getSystemConverter() - Method in class tec.units.ri.unit.ProductUnit
-
- getSystemConverter() - Method in class tec.units.ri.unit.TransformedUnit
-
- getSystemOfUnits() - Method in class tec.units.ri.internal.DefaultSystemOfUnitsService
-
- getSystemOfUnits(String) - Method in class tec.units.ri.internal.DefaultSystemOfUnitsService
-
- getSystemOfUnitsService() - Method in class tec.units.ri.spi.DefaultServiceProvider
-
- getSystemUnit() - Method in class tec.units.ri.AbstractUnit
-
Returns the system unit (unscaled SI unit) from which this unit is derived.
- getSystemUnit() - Method in class tec.units.ri.quantity.DefaultQuantityFactory
-
- getTimestamp() - Method in interface tec.units.ri.spi.Measurement
-
- getUnit() - Method in class tec.units.ri.AbstractQuantity
-
Returns the measurement unit.
- getUnit(Class<Q>) - Method in class tec.units.ri.AbstractSystemOfUnits
-
- getUnit(int) - Method in class tec.units.ri.unit.ProductUnit
-
Returns the unit element at the specified position.
- getUnitCount() - Method in class tec.units.ri.unit.ProductUnit
-
Returns the number of unit elements in this product.
- getUnitFormat(String) - Method in class tec.units.ri.internal.format.DefaultUnitFormatService
-
- getUnitFormat() - Method in class tec.units.ri.internal.format.DefaultUnitFormatService
-
- getUnitFormatService() - Method in class tec.units.ri.spi.DefaultServiceProvider
-
- getUnitPow(int) - Method in class tec.units.ri.unit.ProductUnit
-
Returns the power exponent of the unit element at the specified position.
- getUnitRoot(int) - Method in class tec.units.ri.unit.ProductUnit
-
Returns the root exponent of the unit element at the specified position.
- getUnits() - Method in class tec.units.ri.AbstractSystemOfUnits
-
- getUnits(Dimension) - Method in class tec.units.ri.AbstractSystemOfUnits
-
- getValue() - Method in class tec.units.ri.AbstractQuantity
-
Returns the measurement numeric value.
- getValue() - Method in class tec.units.ri.function.AddConverter
-
- getValue() - Method in class tec.units.ri.function.ExpConverter
-
- getValue() - Method in class tec.units.ri.function.LogConverter
-
- getValue() - Method in class tec.units.ri.function.MultiplyConverter
-
- getValue() - Method in class tec.units.ri.function.PiMultiplierConverter
-
Pi calculation with Machin's formula.
- getValue() - Method in class tec.units.ri.function.RationalConverter
-
- getValue() - Method in class tec.units.ri.quantity.NumberQuantity
-
- GIGA(Unit<Q>) - Static method in enum tec.units.ri.unit.MetricPrefix
-
Returns the specified unit multiplied by the factor 109
- GRAM - Static variable in class tec.units.ri.unit.Units
-
The SI derived unit for mass quantities (standard name g
).
- GRAY - Static variable in class tec.units.ri.unit.Units
-
The SI unit for absorbed dose, specific energy (imparted), kerma (standard name Gy
).
- GROUPING_SEPARATOR - Static variable in class tec.units.ri.internal.format.l10n.NumberFormat.Field
-
Constant identifying the grouping separator field.
- MASS - Static variable in class tec.units.ri.quantity.QuantityDimension
-
Holds mass dimension (M).
- MathUtil - Class in tec.units.ri.internal
-
MathUtil for Java ME.
- MathUtil() - Constructor for class tec.units.ri.internal.MathUtil
-
- Measurement<Q extends javax.measure.Quantity<Q>> - Interface in tec.units.ri.spi
-
A Measurement contains a Quantity
and a timestamp.
- MEGA(Unit<Q>) - Static method in enum tec.units.ri.unit.MetricPrefix
-
Returns the specified unit multiplied by the factor 106
- METRE - Static variable in class tec.units.ri.unit.Units
-
The SI base unit for length quantities (standard name m
).
- METRE_PER_SECOND - Static variable in class tec.units.ri.unit.Units
-
The SI unit for speed quantities (standard name m/s
).
- METRE_PER_SQUARE_SECOND - Static variable in class tec.units.ri.unit.Units
-
The SI unit for acceleration quantities (standard name m/s2
).
- MetricPrefix - Enum in tec.units.ri.unit
-
This class provides support for the 20 prefixes used in the metric system (decimal multiples and submultiples of units).
- MICRO(Unit<Q>) - Static method in enum tec.units.ri.unit.MetricPrefix
-
Returns the specified unit multiplied by the factor 10-6
- MILLI(Unit<Q>) - Static method in enum tec.units.ri.unit.MetricPrefix
-
Returns the specified unit multiplied by the factor 10-3
- MINUTE - Static variable in class tec.units.ri.unit.Units
-
A time unit accepted for use with SI units (standard name min
).
- MOLE - Static variable in class tec.units.ri.unit.Units
-
The SI base unit for amount of substance quantities (standard name mol
).
- multiply(double) - Method in class tec.units.ri.AbstractUnit
-
- multiply(Unit<?>) - Method in class tec.units.ri.AbstractUnit
-
Returns the product of this unit with the one specified.
- multiply(AbstractUnit<?>) - Method in class tec.units.ri.AbstractUnit
-
Returns the product of this physical unit with the one specified.
- multiply(Quantity<?>) - Method in class tec.units.ri.quantity.NumberQuantity
-
- multiply(Number) - Method in class tec.units.ri.quantity.NumberQuantity
-
- multiply(Dimension) - Method in class tec.units.ri.quantity.QuantityDimension
-
Returns the product of this dimension with the one specified.
- multiply(QuantityDimension) - Method in class tec.units.ri.quantity.QuantityDimension
-
Returns the product of this dimension with the one specified.
- MultiplyConverter - Class in tec.units.ri.function
-
This class represents a converter multiplying numeric values by a constant scaling factor (double
based).
- MultiplyConverter(double) - Constructor for class tec.units.ri.function.MultiplyConverter
-
Creates a multiply converter with the specified scale factor.
- of(long, long) - Static method in class tec.units.ri.function.RationalConverter
-
Convenience method equivalent to new RationalConverter(dividend, divisor)
- of(double, double) - Static method in class tec.units.ri.function.RationalConverter
-
Convenience method equivalent to new RationalConverter(dividend, divisor)
- of(long, Unit<Q>) - Static method in class tec.units.ri.quantity.NumberQuantity
-
Returns the scalar quantity for the specified long
stated in the specified unit.
- of(int, Unit<Q>) - Static method in class tec.units.ri.quantity.NumberQuantity
-
Returns the scalar quantity for the specified int
stated in the specified unit.
- of(short, Unit<Q>) - Static method in class tec.units.ri.quantity.NumberQuantity
-
Returns the scalar quantity for the specified short
stated in the specified unit.
- of(float, Unit<Q>) - Static method in class tec.units.ri.quantity.NumberQuantity
-
Returns the scalar quantity for the specified float
stated in the specified unit.
- of(double, Unit<Q>) - Static method in class tec.units.ri.quantity.NumberQuantity
-
Returns the scalar quantity for the specified double
stated in the specified unit.
- of(Class<Q>) - Static method in class tec.units.ri.quantity.QuantityDimension
-
Returns the dimension for the specified quantity type by aggregating the results of DimensionService
or null
if the
specified quantity is unknown.
- of(Quantity, Quantity, Quantity) - Static method in class tec.units.ri.quantity.QuantityRange
-
Returns an QuantityRange
with the specified values.
- OHM - Static variable in class tec.units.ri.unit.Units
-
The SI unit for electric resistance (standard name Ohm
).
- ONE - Static variable in class tec.units.ri.AbstractQuantity
-
Holds a dimensionless quantity of one (exact).
- ONE - Static variable in class tec.units.ri.AbstractUnit
-
Holds the dimensionless unit ONE
.
- parse(CharSequence) - Static method in class tec.units.ri.AbstractQuantity
-
Returns the quantity of unknown type corresponding to the specified representation.
- parse(CharSequence) - Static method in class tec.units.ri.AbstractUnit
-
Returns the physics unit represented by the specified characters.
- parse(CharSequence, int) - Method in class tec.units.ri.format.AbstractUnitFormat
-
Parses a portion of the specified CharSequence
from the specified position to produce a unit.
- parse(CharSequence) - Method in class tec.units.ri.format.SimpleUnitFormat.DefaultFormat
-
- parse(CharSequence, int) - Method in class tec.units.ri.format.SimpleUnitFormat.DefaultFormat
-
- parse(CharSequence) - Static method in class tec.units.ri.quantity.NumberQuantity
-
Returns the decimal quantity of unknown type corresponding to the specified representation.
- parse(char) - Static method in class tec.units.ri.quantity.QuantityDimension
-
Returns the dimension for the specified symbol.
- parseObject(String, ParsePosition) - Method in class tec.units.ri.format.SimpleUnitFormat
-
Parses the text from a string to produce an object (implements java.text.Format
).
- ParsePosition - Class in tec.units.ri.internal.format.l10n
-
ParsePosition
is a simple class used by Format
and its subclasses to keep track of the current position during parsing.
- ParsePosition(int) - Constructor for class tec.units.ri.internal.format.l10n.ParsePosition
-
Create a new ParsePosition with the given initial index.
- parseProductUnit(CharSequence, ParsePosition) - Method in class tec.units.ri.format.SimpleUnitFormat.DefaultFormat
-
- parseProductUnit(CharSequence, ParsePosition) - Method in class tec.units.ri.format.SimpleUnitFormat
-
Parses a sequence of character to produce a unit or a rational product of unit.
- parseSingleUnit(CharSequence, ParsePosition) - Method in class tec.units.ri.format.SimpleUnitFormat.DefaultFormat
-
- parseSingleUnit(CharSequence, ParsePosition) - Method in class tec.units.ri.format.SimpleUnitFormat
-
Parses a sequence of character to produce a single unit.
- PASCAL - Static variable in class tec.units.ri.unit.Units
-
The SI unit for pressure, stress (standard name Pa
).
- PERCENT - Static variable in class tec.units.ri.internal.format.l10n.NumberFormat.Field
-
Constant identifying the percent field.
- PERCENT - Static variable in class tec.units.ri.unit.Units
-
A dimensionless unit accepted for use with SI units (standard name %
).
- PERMILLE - Static variable in class tec.units.ri.internal.format.l10n.NumberFormat.Field
-
Constant identifying the permille field.
- PETA(Unit<Q>) - Static method in enum tec.units.ri.unit.MetricPrefix
-
Returns the specified unit multiplied by the factor 1015
- PI - Static variable in class tec.units.ri.AbstractConverter
-
The ratio of the circumference of a circle to its diameter.
- PICO(Unit<Q>) - Static method in enum tec.units.ri.unit.MetricPrefix
-
Returns the specified unit multiplied by the factor 10-12
- PiMultiplierConverter - Class in tec.units.ri.function
-
This class represents a converter multiplying numeric values by π (Pi).
- PiMultiplierConverter() - Constructor for class tec.units.ri.function.PiMultiplierConverter
-
Creates a Pi multiplier converter.
- pow(int) - Method in class tec.units.ri.AbstractUnit
-
Returns a unit equals to this unit raised to an exponent.
- pow(double, double) - Static method in class tec.units.ri.internal.MathUtil
-
Return a to the power of b, sometimes written as a ** b but not to be confused with the bitwise ^ operator.
- pow(int) - Method in class tec.units.ri.quantity.QuantityDimension
-
Returns this dimension raised to an exponent.
- prefixFor(UnitConverter) - Method in class tec.units.ri.format.SimpleUnitFormat.DefaultFormat
-
- ProductUnit<Q extends javax.measure.Quantity<Q>> - Class in tec.units.ri.unit
-
This class represents units formed by the product of rational powers of existing physical units.
- ProductUnit() - Constructor for class tec.units.ri.unit.ProductUnit
-
Default constructor (used solely to create ONE
instance).
- ProductUnit(Unit<?>) - Constructor for class tec.units.ri.unit.ProductUnit
-
Copy constructor (allows for parameterization of product units).
- scalbn(double, int) - Static method in class tec.units.ri.internal.MathUtil
-
scalbn (double x, int n) scalbn(x,n) returns x* 2**n computed by exponent manipulation rather than by actually performing an exponentiation or a
multiplication.
- SECOND - Static variable in class tec.units.ri.unit.Units
-
The SI base unit for duration quantities (standard name s
).
- setBeginIndex(int) - Method in class tec.units.ri.internal.format.l10n.FieldPosition
-
Sets the begin index.
- setCurrent(DimensionalModel) - Static method in class tec.units.ri.spi.DimensionalModel
-
Sets the current dimensional model
- setEndIndex(int) - Method in class tec.units.ri.internal.format.l10n.FieldPosition
-
Sets the end index.
- setErrorIndex(int) - Method in class tec.units.ri.internal.format.l10n.ParsePosition
-
Set the index at which a parse error occurred.
- setIndex(int) - Method in class tec.units.ri.internal.format.l10n.ParsePosition
-
Set the current parse position.
- setMaximumFractionDigits(int) - Method in class tec.units.ri.internal.format.l10n.NumberFormat
-
Sets the maximum number of digits allowed in the fraction portion of a number.
- setMaximumIntegerDigits(int) - Method in class tec.units.ri.internal.format.l10n.NumberFormat
-
Sets the maximum number of digits allowed in the integer portion of a number.
- setMinimumFractionDigits(int) - Method in class tec.units.ri.internal.format.l10n.NumberFormat
-
Sets the minimum number of digits allowed in the fraction portion of a number.
- setMinimumIntegerDigits(int) - Method in class tec.units.ri.internal.format.l10n.NumberFormat
-
Sets the minimum number of digits allowed in the integer portion of a number.
- setName(String) - Method in class tec.units.ri.AbstractUnit
-
- setSymbol(String) - Method in class tec.units.ri.AbstractUnit
-
- shift(double) - Method in class tec.units.ri.AbstractUnit
-
- SIEMENS - Static variable in class tec.units.ri.unit.Units
-
The SI unit for electric conductance (standard name S
).
- SIEVERT - Static variable in class tec.units.ri.unit.Units
-
The SI unit for dose equivalent (standard name Sv
).
- SIGN - Static variable in class tec.units.ri.internal.format.l10n.NumberFormat.Field
-
Constant identifying the sign field.
- SimpleUnitFormat - Class in tec.units.ri.format
-
This class implements the UnitFormat
interface for formatting and parsing units
.
- SimpleUnitFormat() - Constructor for class tec.units.ri.format.SimpleUnitFormat
-
Base constructor.
- SimpleUnitFormat.ASCIIFormat - Class in tec.units.ri.format
-
This class represents the ASCII format.
- SimpleUnitFormat.ASCIIFormat() - Constructor for class tec.units.ri.format.SimpleUnitFormat.ASCIIFormat
-
- SimpleUnitFormat.DefaultFormat - Class in tec.units.ri.format
-
This class represents the standard format.
- SimpleUnitFormat.DefaultFormat() - Constructor for class tec.units.ri.format.SimpleUnitFormat.DefaultFormat
-
- SimpleUnitFormat.Flavor - Enum in tec.units.ri.format
-
Flavor of this format
- SQUARE_METRE - Static variable in class tec.units.ri.unit.Units
-
The SI unit for area quantities (standard name m2
).
- STERADIAN - Static variable in class tec.units.ri.unit.Units
-
The SI unit for solid angle quantities (standard name sr
).
- subtract(Quantity<Q>) - Method in class tec.units.ri.quantity.NumberQuantity
-
- SYSTEM_NAME - Static variable in class tec.units.ri.unit.Units
-
- tec.units.ri - package tec.units.ri
-
- tec.units.ri.format - package tec.units.ri.format
-
- tec.units.ri.function - package tec.units.ri.function
-
This package provides concrete implementations of the
UnitConverter
interface.
- tec.units.ri.internal - package tec.units.ri.internal
-
- tec.units.ri.internal.format - package tec.units.ri.internal.format
-
- tec.units.ri.internal.format.l10n - package tec.units.ri.internal.format.l10n
-
This package provides internal helper classes emulating Localization support on Java ME.
- tec.units.ri.quantity - package tec.units.ri.quantity
-
- tec.units.ri.spi - package tec.units.ri.spi
-
- tec.units.ri.unit - package tec.units.ri.unit
-
- TEMPERATURE - Static variable in class tec.units.ri.quantity.QuantityDimension
-
Holds temperature dimension (Θ).
- TERA(Unit<Q>) - Static method in enum tec.units.ri.unit.MetricPrefix
-
Returns the specified unit multiplied by the factor 1012
- TESLA - Static variable in class tec.units.ri.unit.Units
-
The alternate unit for magnetic flux density (standard name T
).
- TIME - Static variable in class tec.units.ri.quantity.QuantityDimension
-
Holds time dimension (T).
- to(Unit<Q>) - Method in class tec.units.ri.AbstractQuantity
-
Returns this measure after conversion to specified unit.
- toDouble(Number) - Static method in class tec.units.ri.AbstractQuantity.Equalizer
-
- toSI() - Method in class tec.units.ri.AbstractQuantity
-
Convenient method equivalent to to(this.getUnit().toSI())
.
- toString() - Method in class tec.units.ri.AbstractQuantity
-
Returns the String
representation of this quantity.
- toString() - Method in class tec.units.ri.AbstractUnit
-
Returns the standard
String
representation of this unit.
- toString() - Method in class tec.units.ri.function.AddConverter
-
- toString() - Method in class tec.units.ri.function.ExpConverter
-
- toString() - Method in class tec.units.ri.function.LogConverter
-
- toString() - Method in class tec.units.ri.function.MultiplyConverter
-
- toString() - Method in class tec.units.ri.function.PiMultiplierConverter
-
- toString() - Method in class tec.units.ri.function.RationalConverter
-
- toString() - Method in class tec.units.ri.internal.format.l10n.FieldPosition
-
Return a string representation of this FieldPosition.
- toString() - Method in class tec.units.ri.internal.format.l10n.ParsePosition
-
Return a string representation of this ParsePosition.
- toString() - Method in class tec.units.ri.quantity.NumberQuantity
-
- toString() - Method in class tec.units.ri.quantity.QuantityDimension
-
- toString() - Method in class tec.units.ri.quantity.QuantityRange
-
- toString() - Method in class tec.units.ri.spi.Range
-
- toSystemUnit() - Method in class tec.units.ri.AbstractUnit
-
Returns the unscaled standard (SI) unit from which this unit is derived.
- toSystemUnit() - Method in class tec.units.ri.unit.AlternateUnit
-
- toSystemUnit() - Method in class tec.units.ri.unit.AnnotatedUnit
-
- toSystemUnit() - Method in class tec.units.ri.unit.BaseUnit
-
- toSystemUnit() - Method in class tec.units.ri.unit.ProductUnit
-
- toSystemUnit() - Method in class tec.units.ri.unit.TransformedUnit
-
- transform(UnitConverter) - Method in class tec.units.ri.AbstractUnit
-
- TransformedUnit<Q extends javax.measure.Quantity<Q>> - Class in tec.units.ri.unit
-
This class represents the units derived from other units using converters.
- TransformedUnit(String, Unit<Q>, Unit<Q>, UnitConverter) - Constructor for class tec.units.ri.unit.TransformedUnit
-
Creates a transformed unit from the specified parent and system unit.
- TransformedUnit(AbstractUnit<Q>, UnitConverter) - Constructor for class tec.units.ri.unit.TransformedUnit
-
Creates a transformed unit from the specified parent unit.
- TransformedUnit(String, Unit<Q>, UnitConverter) - Constructor for class tec.units.ri.unit.TransformedUnit
-
Creates a transformed unit from the specified parent unit.
- TransformedUnit(Unit<Q>, UnitConverter) - Constructor for class tec.units.ri.unit.TransformedUnit
-
Creates a transformed unit from the specified system unit.