Package org.openjdk.jmc.common.unit
package org.openjdk.jmc.common.unit
This package contains the data model for quantities and units.
-
ClassDescriptionBinary prefixes, as standardized by IEC.ComparableConstraint<T extends Comparable<T>>A
constraint
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.Decimal prefixes, as standardized by SI.A display formatter is basically an identifier that tells a user interface widget how the unit should be formatted, e.g.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.IFormatter<T>Generic formatter interface, primarily intended for human consumption.Quantity formatter extension to reduce redundant information when presenting multiple adjacent, and growing, quantities for human consumption.Quick and dirtyScaleFactor
implementation.A mutable extension toIConstrainedMap
.IPersister<T>IRange<T extends Comparable<? super T>>A range ofComparable
s.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
.A unit of an affine unit system.KindOfQuantity<U extends TypedUnit<U>>KindOfQuantity.ExactFormatter<U extends TypedUnit<U>>KindOfQuantity.VerboseFormatter<U extends TypedUnit<U>>The kind of a linear (scalar) physical quantity.A measurement unit for a particular kind of quantity.IScalarAffineTransform
used as the inverse ofLongPreOffsetTransform
to avoid losing the precision of the long offset.Transform
that adds an offset first and then multiplies with the multiplier.Short termScaleFactor
implementation to improve custom units.A mutable extension toIConstrainedMap
.Exception denoting problem converting between representations of physical quantities ("numbers with units").QuantityRange<U extends TypedUnit<U>>A finite range of quantities.RangeContentType<T extends Comparable<? super T>>A linear transform, that is, a scale factor.Simple constrained map that allows constraints to be added, and an optional fallback constraint.Type parameterized extension ofIUnit
.TypedUnit.UnitSelector<U extends TypedUnit<U>>This class is responsible for configuring the different units that are available in Mission Control.