Uses of Interface
javax.measure.Quantity
| Package | Description |
|---|---|
| javax.measure |
Specifies Java packages for the programmatic, type safe handling
of quantities and their expression as values of units.
|
| javax.measure.format |
[OPTIONAL] Provides Formatting and Parsing functionality for units, quantities, dimensions or their textual representation.
|
| javax.measure.quantity |
[OPTIONAL] Provides quantitative properties or attributes of thing such as
mass, time, distance, heat, and angular separation.
|
| javax.measure.spi |
[OPTIONAL] The Units of Measurement SPI.
|
-
Uses of Quantity in javax.measure
Classes in javax.measure with type parameters of type Quantity Modifier and Type Interface Description interfaceQuantity<Q extends Quantity<Q>>Represents a quantitative property of a phenomenon, body, or substance, that can be quantified by measurement.interfaceUnit<Q extends Quantity<Q>>Represents a determinate quantity (as of length, time, heat, or value) adopted as a standard of measurement.Methods in javax.measure with type parameters of type Quantity Modifier and Type Method Description <T extends Quantity<T>>
Quantity<T>Quantity. asType(Class<T> type)Casts this quantity to a parameterized unit of specified nature or throw aClassCastExceptionif the dimension of the specified quantity and this measure unit's dimension do not match.<T extends Quantity<T>>
Unit<T>Unit. asType(Class<T> type)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.static <Q extends Quantity<Q>>
Unit<Q>MetricPrefix. ATTO(Unit<Q> unit)Returns the specified unit multiplied by the factor10-18static <Q extends Quantity<Q>>
Unit<Q>MetricPrefix. CENTI(Unit<Q> unit)Returns the specified unit multiplied by the factor10-2static <Q extends Quantity<Q>>
Unit<Q>MetricPrefix. DECI(Unit<Q> unit)Returns the specified unit multiplied by the factor10-1static <Q extends Quantity<Q>>
Unit<Q>MetricPrefix. DEKA(Unit<Q> unit)Returns the specified unit multiplied by the factor101static <Q extends Quantity<Q>>
Unit<Q>MetricPrefix. EXA(Unit<Q> unit)Returns the specified unit multiplied by the factor1018static <Q extends Quantity<Q>>
Unit<Q>BinaryPrefix. EXBI(Unit<Q> unit)Returns the specified unit multiplied by the factor10246(binary prefix).static <Q extends Quantity<Q>>
Unit<Q>MetricPrefix. FEMTO(Unit<Q> unit)Returns the specified unit multiplied by the factor10-15static <Q extends Quantity<Q>>
Unit<Q>BinaryPrefix. GIBI(Unit<Q> unit)Returns the specified unit multiplied by the factor10243(binary prefix).static <Q extends Quantity<Q>>
Unit<Q>MetricPrefix. GIGA(Unit<Q> unit)Returns the specified unit multiplied by the factor109static <Q extends Quantity<Q>>
Unit<Q>MetricPrefix. HECTO(Unit<Q> unit)Returns the specified unit multiplied by the factor102static <Q extends Quantity<Q>>
Unit<Q>BinaryPrefix. KIBI(Unit<Q> unit)Returns the specified unit multiplied by the factor1024(binary prefix).static <Q extends Quantity<Q>>
Unit<Q>MetricPrefix. KILO(Unit<Q> unit)Returns the specified unit multiplied by the factor103static <Q extends Quantity<Q>>
Unit<Q>BinaryPrefix. MEBI(Unit<Q> unit)Returns the specified unit multiplied by the factor10242(binary prefix).static <Q extends Quantity<Q>>
Unit<Q>MetricPrefix. MEGA(Unit<Q> unit)Returns the specified unit multiplied by the factor106static <Q extends Quantity<Q>>
Unit<Q>MetricPrefix. MICRO(Unit<Q> unit)Returns the specified unit multiplied by the factor10-6static <Q extends Quantity<Q>>
Unit<Q>MetricPrefix. MILLI(Unit<Q> unit)Returns the specified unit multiplied by the factor10-3static <Q extends Quantity<Q>>
Unit<Q>MetricPrefix. NANO(Unit<Q> unit)Returns the specified unit multiplied by the factor10-9static <Q extends Quantity<Q>>
Unit<Q>BinaryPrefix. PEBI(Unit<Q> unit)Returns the specified unit multiplied by the factor10245(binary prefix).static <Q extends Quantity<Q>>
Unit<Q>MetricPrefix. PETA(Unit<Q> unit)Returns the specified unit multiplied by the factor1015static <Q extends Quantity<Q>>
Unit<Q>MetricPrefix. PICO(Unit<Q> unit)Returns the specified unit multiplied by the factor10-12static <Q extends Quantity<Q>>
Unit<Q>BinaryPrefix. TEBI(Unit<Q> unit)Returns the specified unit multiplied by the factor10244(binary prefix).static <Q extends Quantity<Q>>
Unit<Q>MetricPrefix. TERA(Unit<Q> unit)Returns the specified unit multiplied by the factor1012static <Q extends Quantity<Q>>
Unit<Q>BinaryPrefix. YOBI(Unit<Q> unit)Returns the specified unit multiplied by the factor10248(binary prefix).static <Q extends Quantity<Q>>
Unit<Q>MetricPrefix. YOCTO(Unit<Q> unit)Returns the specified unit multiplied by the factor10-24static <Q extends Quantity<Q>>
Unit<Q>MetricPrefix. YOTTA(Unit<Q> unit)Returns the specified unit multiplied by the factor1024static <Q extends Quantity<Q>>
Unit<Q>BinaryPrefix. ZEBI(Unit<Q> unit)Returns the specified unit multiplied by the factor10247(binary prefix).static <Q extends Quantity<Q>>
Unit<Q>MetricPrefix. ZEPTO(Unit<Q> unit)Returns the specified unit multiplied by the factor10-21static <Q extends Quantity<Q>>
Unit<Q>MetricPrefix. ZETTA(Unit<Q> unit)Returns the specified unit multiplied by the factor1021Methods in javax.measure that return Quantity Modifier and Type Method Description Quantity<Q>Quantity. add(Quantity<Q> addend)Returns the sum of thisQuantitywith the one specified.<T extends Quantity<T>>
Quantity<T>Quantity. asType(Class<T> type)Casts this quantity to a parameterized unit of specified nature or throw aClassCastExceptionif the dimension of the specified quantity and this measure unit's dimension do not match.Quantity<Q>Quantity. divide(Number divisor)Returns the quotient of thisQuantitydivided by theNumberspecified.Quantity<?>Quantity. divide(Quantity<?> divisor)Returns the quotient of thisQuantitydivided by theQuantityspecified.Quantity<?>Quantity. inverse()Returns aQuantitythat is the multiplicative inverse of thisQuantity, having reciprocal value and reciprocal unit as given bythis.getUnit().inverse().Quantity<Q>Quantity. multiply(Number multiplicand)Returns the product of thisQuantitywith theNumbervalue specified.Quantity<?>Quantity. multiply(Quantity<?> multiplicand)Returns the product of thisQuantitywith the one specified.Quantity<Q>Quantity. negate()Returns aQuantitywhose value is(-this.getValue()).Quantity<Q>Quantity. subtract(Quantity<Q> subtrahend)Returns the difference between thisQuantityand the one specified.Quantity<Q>Quantity. to(Unit<Q> unit)Returns thisQuantityconverted into another (compatible)Unit.default Quantity<Q>Quantity. toSystemUnit()Convenient method equivalent toto(getUnit().toSystemUnit()).Methods in javax.measure with parameters of type Quantity Modifier and Type Method Description Quantity<Q>Quantity. add(Quantity<Q> addend)Returns the sum of thisQuantitywith the one specified.Quantity<?>Quantity. divide(Quantity<?> divisor)Returns the quotient of thisQuantitydivided by theQuantityspecified.booleanQuantity. isEquivalentTo(Quantity<Q> that)Compares two instances ofQuantity <Q>, doing the conversion of unit if necessary.Quantity<?>Quantity. multiply(Quantity<?> multiplicand)Returns the product of thisQuantitywith the one specified.Quantity<Q>Quantity. subtract(Quantity<Q> subtrahend)Returns the difference between thisQuantityand the one specified. -
Uses of Quantity in javax.measure.format
Methods in javax.measure.format that return Quantity Modifier and Type Method Description Quantity<?>QuantityFormat. parse(CharSequence csq)Parses a portion of the specifiedCharSequencefrom the specified position to produce aQuantity.Quantity<?>QuantityFormat. parse(CharSequence csq, ParsePosition pos)Parses a portion of the specifiedCharSequencefrom the specified position to produce aQuantity.Methods in javax.measure.format with parameters of type Quantity Modifier and Type Method Description StringQuantityFormat. format(Quantity<?> quantity)Formats the specifiedQuantity.AppendableQuantityFormat. format(Quantity<?> quantity, Appendable destination)Formats the specified quantity into anAppendable. -
Uses of Quantity in javax.measure.quantity
Subinterfaces of Quantity in javax.measure.quantity Modifier and Type Interface Description interfaceAccelerationRate of change of velocity with respect to time.interfaceAmountOfSubstanceNumber of elementary entities (molecules, for example) of a substance.interfaceAngleFigure formed by two lines diverging from a common point.interfaceAreaExtent of a planar region or of the surface of a solid measured in square units.interfaceCatalyticActivityCatalytic activity.interfaceDimensionlessDimensionless quantity.interfaceElectricCapacitanceElectric capacitance.interfaceElectricChargeElectric charge.interfaceElectricConductanceElectric conductance.interfaceElectricCurrentAmount of electric charge flowing past a specified circuit point per unit time.interfaceElectricInductanceElectric inductance.interfaceElectricPotentialElectric potential or electromotive force.interfaceElectricResistanceElectric resistance.interfaceEnergyCapacity of a physical system to do work.interfaceForceQuantity that tends to produce an acceleration of a body in the direction of its application.interfaceFrequencyNumber of times a specified phenomenon occurs within a specified interval.interfaceIlluminanceIlluminance.interfaceLengthExtent of something along its greatest dimension or the extent of space between two objects or places.interfaceLuminousFluxLuminous flux.interfaceLuminousIntensityLuminous flux density per solid angle as measured in a given direction relative to the emitting source.interfaceMagneticFluxMagnetic flux.interfaceMagneticFluxDensityMagnetic flux density.interfaceMassMeasure of the quantity of matter that a body or an object contains.interfacePowerRate at which work is done.interfacePressureForce applied uniformly over a surface.interfaceRadiationDoseAbsorbedAmount of energy deposited per unit of mass.interfaceRadiationDoseEffectiveEffective (or "equivalent") dose of radiation received by a human or some other living organism.interfaceRadioactivityRadioactive activity.interfaceSolidAngleAngle formed by three or more planes intersecting at a common point.interfaceSpeedDistance traveled divided by the time of travel.interfaceTemperatureDegree of hotness or coldness of a body or an environment.interfaceTimePeriod of existence or persistence.interfaceVolumeAmount of space occupied by a three-dimensional object or region of space. -
Uses of Quantity in javax.measure.spi
Classes in javax.measure.spi with type parameters of type Quantity Modifier and Type Interface Description interfaceQuantityFactory<Q extends Quantity<Q>>Methods in javax.measure.spi with type parameters of type Quantity Modifier and Type Method Description abstract <Q extends Quantity<Q>>
QuantityFactory<Q>ServiceProvider. getQuantityFactory(Class<Q> quantity)Returns a factory for the givenQuantitytype.<Q extends Quantity<Q>>
Unit<Q>SystemOfUnits. getUnit(Class<Q> quantityType)Returns the default unit for the specified quantity ornullif none is defined for the given quantity in this unit system.Methods in javax.measure.spi that return Quantity Modifier and Type Method Description Quantity<Q>QuantityFactory. create(Number value, Unit<Q> unit)Returns the quantity for the specified number stated in the specified unit.Quantity<Q>QuantityFactory. create(Number value, Unit<Q> unit, Quantity.Scale scale)Returns the quantity for the specified number stated in the specified unit and scale.