Uses of Interface
javax.measure.Quantity

Packages that use Quantity
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] Provides quantitative properties or attributes of thing such as mass, time, distance, heat, and angular separation.
[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
    interface 
    Quantity<Q extends Quantity<Q>>
    Represents a quantitative property of a phenomenon, body, or substance, that can be quantified by measurement.
    interface 
    Unit<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 a ClassCastException if 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 a ClassCastException if 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 factor 10-18
    static <Q extends Quantity<Q>>
    Unit<Q>
    MetricPrefix.CENTI(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 10-2
    static <Q extends Quantity<Q>>
    Unit<Q>
    MetricPrefix.DECA(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 101
    static <Q extends Quantity<Q>>
    Unit<Q>
    MetricPrefix.DECI(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 10-1
    static <Q extends Quantity<Q>>
    Unit<Q>
    MetricPrefix.DEKA(Unit<Q> unit)
    US alias for DECA.
    static <Q extends Quantity<Q>>
    Unit<Q>
    MetricPrefix.EXA(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 1018
    static <Q extends Quantity<Q>>
    Unit<Q>
    BinaryPrefix.EXBI(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 10246 (binary prefix).
    static <Q extends Quantity<Q>>
    Unit<Q>
    MetricPrefix.FEMTO(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 10-15
    static <Q extends Quantity<Q>>
    Unit<Q>
    BinaryPrefix.GIBI(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 10243 (binary prefix).
    static <Q extends Quantity<Q>>
    Unit<Q>
    MetricPrefix.GIGA(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 109
    static <Q extends Quantity<Q>>
    Unit<Q>
    MetricPrefix.HECTO(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 102
    static <Q extends Quantity<Q>>
    Unit<Q>
    BinaryPrefix.KIBI(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 1024 (binary prefix).
    static <Q extends Quantity<Q>>
    Unit<Q>
    MetricPrefix.KILO(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 103
    static <Q extends Quantity<Q>>
    Unit<Q>
    BinaryPrefix.MEBI(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 10242 (binary prefix).
    static <Q extends Quantity<Q>>
    Unit<Q>
    MetricPrefix.MEGA(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 106
    static <Q extends Quantity<Q>>
    Unit<Q>
    MetricPrefix.MICRO(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 10-6
    static <Q extends Quantity<Q>>
    Unit<Q>
    MetricPrefix.MILLI(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 10-3
    static <Q extends Quantity<Q>>
    Unit<Q>
    MetricPrefix.NANO(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 10-9
    static <Q extends Quantity<Q>>
    Unit<Q>
    BinaryPrefix.PEBI(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 10245 (binary prefix).
    static <Q extends Quantity<Q>>
    Unit<Q>
    MetricPrefix.PETA(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 1015
    static <Q extends Quantity<Q>>
    Unit<Q>
    MetricPrefix.PICO(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 10-12
    static <Q extends Quantity<Q>>
    Unit<Q>
    MetricPrefix.QUECTO(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 10-30
    static <Q extends Quantity<Q>>
    Unit<Q>
    MetricPrefix.QUETTA(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 1030
    static <Q extends Quantity<Q>>
    Unit<Q>
    MetricPrefix.RONNA(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 1027
    static <Q extends Quantity<Q>>
    Unit<Q>
    MetricPrefix.RONTO(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 10-27
    static <Q extends Quantity<Q>>
    Unit<Q>
    BinaryPrefix.TEBI(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 10244 (binary prefix).
    static <Q extends Quantity<Q>>
    Unit<Q>
    MetricPrefix.TERA(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 1012
    static <Q extends Quantity<Q>>
    Unit<Q>
    BinaryPrefix.YOBI(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 10248 (binary prefix).
    static <Q extends Quantity<Q>>
    Unit<Q>
    MetricPrefix.YOCTO(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 10-24
    static <Q extends Quantity<Q>>
    Unit<Q>
    MetricPrefix.YOTTA(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 1024
    static <Q extends Quantity<Q>>
    Unit<Q>
    BinaryPrefix.ZEBI(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 10247 (binary prefix).
    static <Q extends Quantity<Q>>
    Unit<Q>
    MetricPrefix.ZEPTO(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 10-21
    static <Q extends Quantity<Q>>
    Unit<Q>
    MetricPrefix.ZETTA(Unit<Q> unit)
    Returns the specified unit multiplied by the factor 1021
    Methods in javax.measure that return Quantity
    Modifier and Type
    Method
    Description
    Quantity.add(Quantity<Q> addend)
    Returns the sum of this Quantity with 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 a ClassCastException if the dimension of the specified quantity and this measure unit's dimension do not match.
    Quantity.divide(Number divisor)
    Returns the quotient of this Quantity divided by the Number specified.
    Quantity.divide(Quantity<?> divisor)
    Returns the quotient of this Quantity divided by the Quantity specified.
    Quantity.inverse()
    Returns a Quantity that is the multiplicative inverse of this Quantity, having reciprocal value and reciprocal unit as given by this.getUnit().inverse().
    Quantity.multiply(Number multiplicand)
    Returns the product of this Quantity with the Number value specified.
    Quantity.multiply(Quantity<?> multiplicand)
    Returns the product of this Quantity with the one specified.
    Quantity.negate()
    Returns a Quantity whose value is (-this.getValue()).
    Quantity.subtract(Quantity<Q> subtrahend)
    Returns the difference between this Quantity and the one specified.
    Quantity.to(Unit<Q> unit)
    Returns this Quantity converted into another (compatible) Unit.
    default Quantity<Q>
    Quantity.toSystemUnit()
    Convenient method equivalent to to(getUnit().toSystemUnit()).
    Methods in javax.measure with parameters of type Quantity
    Modifier and Type
    Method
    Description
    Quantity.add(Quantity<Q> addend)
    Returns the sum of this Quantity with the one specified.
    Quantity.divide(Quantity<?> divisor)
    Returns the quotient of this Quantity divided by the Quantity specified.
    boolean
    Quantity.isEquivalentTo(Quantity<Q> that)
    Compares two instances of Quantity <Q>, performing the conversion of units if necessary.
    Quantity.multiply(Quantity<?> multiplicand)
    Returns the product of this Quantity with the one specified.
    Quantity.subtract(Quantity<Q> subtrahend)
    Returns the difference between this Quantity and the one specified.
  • Uses of Quantity in javax.measure.format

    Methods in javax.measure.format that return Quantity
    Modifier and Type
    Method
    Description
    QuantityFormat.parse(CharSequence csq)
    Parses the specified CharSequence to produce a Quantity.
    QuantityFormat.parse(CharSequence csq, ParsePosition pos)
    Parses a portion of the specified CharSequence from the specified position to produce a Quantity.
    Methods in javax.measure.format with parameters of type Quantity
    Modifier and Type
    Method
    Description
    QuantityFormat.format(Quantity<?> quantity)
    Formats the specified Quantity.
    QuantityFormat.format(Quantity<?> quantity, Appendable destination)
    Formats the specified quantity into an Appendable.
  • Uses of Quantity in javax.measure.quantity

    Subinterfaces of Quantity in javax.measure.quantity
    Modifier and Type
    Interface
    Description
    interface 
    Rate of change of velocity with respect to time.
    interface 
    Number of elementary entities (molecules, for example) of a substance.
    interface 
    Figure formed by two lines diverging from a common point.
    interface 
    Extent of a planar region or of the surface of a solid measured in square units.
    interface 
    Catalytic activity.
    interface 
    Dimensionless quantity.
    interface 
    Electric capacitance.
    interface 
    Electric charge.
    interface 
    Electric conductance.
    interface 
    Amount of electric charge flowing past a specified circuit point per unit time.
    interface 
    Electric inductance.
    interface 
    Electric potential or electromotive force.
    interface 
    Electric resistance.
    interface 
    Capacity of a physical system to do work.
    interface 
    Quantity that tends to produce an acceleration of a body in the direction of its application.
    interface 
    Number of times a specified phenomenon occurs within a specified interval.
    interface 
    Illuminance.
    interface 
    Extent of something along its greatest dimension or the extent of space between two objects or places.
    interface 
    Luminous flux.
    interface 
    Luminous flux density per solid angle as measured in a given direction relative to the emitting source.
    interface 
    Magnetic flux.
    interface 
    Magnetic flux density.
    interface 
    Measure of the quantity of matter that a body or an object contains.
    interface 
    Rate at which work is done.
    interface 
    Force applied uniformly over a surface.
    interface 
    Amount of energy deposited per unit of mass.
    interface 
    Effective (or "equivalent") dose of radiation received by a human or some other living organism.
    interface 
    Radioactive activity.
    interface 
    Angle formed by three or more planes intersecting at a common point.
    interface 
    Distance traveled divided by the time of travel.
    interface 
    Degree of hotness or coldness of a body or an environment.
    interface 
    Period of existence or persistence.
    interface 
    Amount 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
    interface 
    Represents a factory that accepts Number and Unit arguments to create Quantity results.
    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 given Quantity type.
    <Q extends Quantity<Q>>
    Unit<Q>
    SystemOfUnits.getUnit(Class<Q> quantityType)
    Returns the default unit for the specified quantity or null if none is defined for the given quantity in this unit system.
    Methods in javax.measure.spi that return Quantity
    Modifier and Type
    Method
    Description
    QuantityFactory.create(Number value, Unit<Q> unit)
    Returns 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.