Package org.openjdk.jmc.common.unit
This package contains the data model for quantities and units.
-
Interface Summary Interface Description IConstrainedMap<K> Read only interface for a map where the values are constrained by anIConstraint
per key.IConstraint<T> A constraint on allowed instances of an existing typeT
, including constrained conversions to and from persistable and interactive strings.IDescribedMap<K> IFormatter<T> Generic formatter interface, primarily intended for human consumption.IIncrementalFormatter Quantity formatter extension to reduce redundant information when presenting multiple adjacent, and growing, quantities for human consumption.IMutableConstrainedMap<K> A mutable extension toIConstrainedMap
.IOptionDescriptor<T> IPersister<T> IPrefix<P extends IPrefix<P>> IQuantity IRange<T extends Comparable<? super T>> A range ofComparable
s.IScalarAffineTransform A one dimensional affine transform, to be used on numerical quantity values (that is, the numbers in front of a unit).ITypedQuantity<U extends TypedUnit<U>> Type parameterized extension ofIQuantity
.IUnit A unit of an affine unit system.LinearKindOfQuantity.LinearUnitSelector TypedUnit.UnitSelector<U extends TypedUnit<U>> -
Class Summary Class Description BinaryScaleFactor BinaryUnitSelector ComparableConstraint<T extends Comparable<T>> Aconstraint
that wraps apersister
forComparable
values, and constrains the allowed values with minimum and maximum values.ContentType<T> A content type describes what kind of data a value is.CustomUnitSelector DecimalScaleFactor DecimalUnitSelector DisplayFormatter<T> A display formatter is basically an identifier that tells a user interface widget how the unit should be formatted, e.g.ImpreciseScaleFactor Quick and dirtyScaleFactor
implementation.KindOfQuantity<U extends TypedUnit<U>> KindOfQuantity.ExactFormatter<U extends TypedUnit<U>> KindOfQuantity.VerboseFormatter<U extends TypedUnit<U>> LinearKindOfQuantity The kind of a linear (scalar) physical quantity.LinearKindOfQuantity.AutoFormatter LinearKindOfQuantity.DualUnitFormatter LinearUnit A measurement unit for a particular kind of quantity.LinearUnit.Custom LongPostOffsetTransform IScalarAffineTransform
used as the inverse ofLongPreOffsetTransform
to avoid losing the precision of the long offset.LongPreOffsetTransform Transform
that adds an offset first and then multiplies with the multiplier.LongScaleFactor Short termScaleFactor
implementation to improve custom units.MutableConstrainedMap<K> A mutable extension toIConstrainedMap
.QuantitiesToolkit QuantityRange<U extends TypedUnit<U>> A finite range of quantities.RangeContentType<T extends Comparable<? super T>> ScaleFactor A linear transform, that is, a scale factor.SimpleAffineTransform SimpleConstrainedMap<K> Simple constrained map that allows constraints to be added, and an optional fallback constraint.StructContentType<T> TimestampUnit TypedUnit<U extends TypedUnit<U>> Type parameterized extension ofIUnit
.UnitLookup This class is responsible for configuring the different units that are available in Mission Control.WrappingPersister<T> -
Enum Summary Enum Description BinaryPrefix Binary prefixes, as standardized by IEC.DecimalPrefix Decimal prefixes, as standardized by SI.QuantityConversionException.Problem -
Exception Summary Exception Description QuantityConversionException Exception denoting problem converting between representations of physical quantities ("numbers with units").QuantityConversionException.Persisted QuantityConversionException.Quantity