Uses of Interface
tech.units.indriya.ComparableQuantity
-
Packages that use ComparableQuantity Package Description tech.units.indriya This package provides the Reference Implementation of the Units of Measurement API.tech.units.indriya.format tech.units.indriya.quantity tech.units.indriya.quantity.time tech.units.indriya.spi -
-
Uses of ComparableQuantity in tech.units.indriya
Classes in tech.units.indriya that implement ComparableQuantity Modifier and Type Class Description classAbstractQuantity<Q extends Quantity<Q>>This class represents the immutable result of a scalar quantity stated in a known unit.Methods in tech.units.indriya that return ComparableQuantity Modifier and Type Method Description ComparableQuantity<Q>ComparableQuantity. add(Quantity<Q> that)<T extends Quantity<T>>
ComparableQuantity<T>AbstractQuantity. asType(Class<T> type)Casts this quantity to a parameterized quantity of specified nature or throw aClassCastExceptionif the dimension of the specified quantity and its unit's dimension do not match.<T extends Quantity<T>>
ComparableQuantity<T>ComparableQuantity. asType(Class<T> type)<T extends Quantity<T>,E extends Quantity<E>>
ComparableQuantity<E>AbstractQuantity. divide(Quantity<T> that, Class<E> asTypeQuantity)ComparableQuantity<Q>ComparableQuantity. divide(Number that)ComparableQuantity<?>ComparableQuantity. divide(Quantity<?> that)<T extends Quantity<T>,E extends Quantity<E>>
ComparableQuantity<E>ComparableQuantity. divide(Quantity<T> that, Class<E> asTypeQuantity)Multiply and cast theComparableQuantity<T extends Quantity<T>>
ComparableQuantity<T>AbstractQuantity. inverse(Class<T> quantityClass)ComparableQuantity<?>ComparableQuantity. inverse()<T extends Quantity<T>>
ComparableQuantity<T>ComparableQuantity. inverse(Class<T> quantityClass)invert and already cast to defined quantityClass<T extends Quantity<T>,E extends Quantity<E>>
ComparableQuantity<E>AbstractQuantity. multiply(Quantity<T> that, Class<E> asTypeQuantity)ComparableQuantity<Q>ComparableQuantity. multiply(Number multiplier)ComparableQuantity<?>ComparableQuantity. multiply(Quantity<?> multiplier)<T extends Quantity<T>,E extends Quantity<E>>
ComparableQuantity<E>ComparableQuantity. multiply(Quantity<T> that, Class<E> asTypeQuantity)Divide and cast theComparableQuantityComparableQuantity<Q>ComparableQuantity. subtract(Quantity<Q> that)ComparableQuantity<Q>AbstractQuantity. to(Unit<Q> anotherUnit)Returns this quantity after conversion to specified unit.ComparableQuantity<Q>ComparableQuantity. to(Unit<Q> unit) -
Uses of ComparableQuantity in tech.units.indriya.format
Methods in tech.units.indriya.format with parameters of type ComparableQuantity Modifier and Type Method Description protected StringBufferAbstractQuantityFormat. format(ComparableQuantity<?> quantity, StringBuffer dest)Convenience method equivalent to#format(ComparableQuantity, Appendable)except it does not raise an IOException. -
Uses of ComparableQuantity in tech.units.indriya.quantity
Classes in tech.units.indriya.quantity that implement ComparableQuantity Modifier and Type Class Description classNumberQuantity<Q extends Quantity<Q>>Implementation ofComparableQuantitythat holds a JavaNumber, which represented this quantity's amount.Methods in tech.units.indriya.quantity that return ComparableQuantity Modifier and Type Method Description ComparableQuantity<Q>NumberQuantity. add(Quantity<Q> that)ComparableQuantity<Q>NumberQuantity. divide(Number divisor)ComparableQuantity<?>NumberQuantity. divide(Quantity<?> that)static <Q extends Quantity<Q>>
ComparableQuantity<Q>Quantities. getQuantity(Number value, Unit<Q> unit)Returns the scalar quantity of typeNumberQuantityin the specified unit andABSOLUTEscale.static <Q extends Quantity<Q>>
ComparableQuantity<Q>Quantities. getQuantity(Number value, Unit<Q> unit, Quantity.Scale scale)Returns the scalar quantity of typeNumberQuantityin the specified unit and scale.ComparableQuantity<?>NumberQuantity. inverse()ComparableQuantity<Q>NumberQuantity. multiply(Number factor)ComparableQuantity<?>NumberQuantity. multiply(Quantity<?> that)ComparableQuantity<Q>NumberQuantity. subtract(Quantity<Q> that) -
Uses of ComparableQuantity in tech.units.indriya.quantity.time
Classes in tech.units.indriya.quantity.time that implement ComparableQuantity Modifier and Type Class Description classTemporalQuantityClass that representsTemporalUnitin Unit-APIclassTimeUnitQuantityClass that representsTimeUnitin Unit-API -
Uses of ComparableQuantity in tech.units.indriya.spi
Methods in tech.units.indriya.spi with parameters of type ComparableQuantity Modifier and Type Method Description static <Q extends Quantity<Q>>
Measurement<Q>Measurement. of(ComparableQuantity<Q> q)static <Q extends Quantity<Q>>
Measurement<Q>Measurement. of(ComparableQuantity<Q> q, Instant i)
-