Package tech.units.indriya.quantity
package tech.units.indriya.quantity
-
ClassesClassDescriptionBigIntegerQuantity<Q extends javax.measure.Quantity<Q>>An amount of quantity, implementation of
ComparableQuantity
that usesBigInteger
as implementation ofNumber
, this object is immutable.ByteQuantity<Q extends javax.measure.Quantity<Q>>An amount of quantity, consisting of a short and a Unit.DecimalQuantity<Q extends javax.measure.Quantity<Q>>An amount of quantity, implementation ofComparableQuantity
that usesBigDecimal
as implementation ofNumber
, this object is immutable.DefaultQuantityFactory<Q extends javax.measure.Quantity<Q>>A factory producing simple quantities instances (tuplesNumber
/Unit
).
For example:
Mass m = DefaultQuantityFactory.getInstance(Mass.class).create(23.0, KILOGRAM); // 23.0 kg
Time m = DefaultQuantityFactory.getInstance(Time.class).create(124, MILLI(SECOND)); // 124 msDoubleQuantity<Q extends javax.measure.Quantity<Q>>An amount of quantity, implementation ofComparableQuantity
that usesDouble
as implementation ofNumber
, this object is immutable.FloatQuantity<Q extends javax.measure.Quantity<Q>>An amount of quantity, consisting of a float and a Unit.IntegerQuantity<Q extends javax.measure.Quantity<Q>>An amount of quantity, consisting of an integer and a Unit.LongQuantity<Q extends javax.measure.Quantity<Q>>An amount of quantity, consisting of a long and a Unit.NumberQuantity<Q extends javax.measure.Quantity<Q>>An amount of quantity, implementation ofComparableQuantity
that keepNumber
as possible otherwise converts toDecimalQuantity
, this object is immutable.ProxyQuantityFactory<Q extends javax.measure.Quantity<Q>>A factory producing simple quantities instances (tuplesNumber
/Unit
).ProxyQuantityFactory.Default<Q extends javax.measure.Quantity<Q>>The default factory implementation.ProxyQuantityFactory.GenericHandler<Q extends javax.measure.Quantity<Q>>The method invocation handler for implementation backed by any kind ofNumber
.Singleton class for accessingQuantity
instances.This class represents a quantity dimension (dimension of a physical quantity).QuantityRange<Q extends javax.measure.Quantity<Q>>A Quantity Range is a pair ofQuantity
items that represent a range of values.ShortQuantity<Q extends javax.measure.Quantity<Q>>An amount of quantity, consisting of a short and a Unit.