Package | Description |
---|---|
org.openjdk.jmc.common.unit |
This package contains the data model for quantities and units.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
ScalarQuantity<U extends TypedUnit<U>>
A scalar physical quantity value, conceptually a (real) number with a unit.
|
static class |
ScalarQuantity.DoubleStored<U extends TypedUnit<U>> |
static class |
ScalarQuantity.LongStored<U extends TypedUnit<U>> |
Modifier and Type | Field and Description |
---|---|
private ITypedQuantity<U> |
QuantityRange.WithEnd.end |
private ITypedQuantity<LinearUnit> |
QuantityRange.WithExtent.extent |
protected ITypedQuantity<U> |
QuantityRange.start |
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<ITypedQuantity<LinearUnit>> |
CustomUnitSelector.tickList |
Modifier and Type | Method and Description |
---|---|
ITypedQuantity<U> |
ITypedQuantity.add(ITypedQuantity<LinearUnit> addend) |
ITypedQuantity<U> |
ScalarQuantity.LongStored.add(ITypedQuantity<LinearUnit> addend) |
ITypedQuantity<U> |
ScalarQuantity.DoubleStored.add(ITypedQuantity<LinearUnit> addend) |
protected ITypedQuantity<TimestampUnit> |
TimestampUnit.add(long numericalAugend,
LinearUnit addendUnit,
long numericalAddend) |
protected abstract ITypedQuantity<U> |
TypedUnit.add(long numericalAugend,
LinearUnit addendUnit,
long numericalAddend) |
protected ITypedQuantity<LinearUnit> |
LinearUnit.add(long numericalAugend,
LinearUnit addendUnit,
long numericalAddend) |
protected ITypedQuantity<U> |
TypedUnit.addPossiblyIntegral(long numericalAugend,
IScalarAffineTransform addendValueTransform,
long numericalAddend) |
ITypedQuantity<LinearUnit> |
LinearUnit.asWellKnownQuantity() |
ITypedQuantity<LinearUnit> |
LinearUnit.Custom.asWellKnownQuantity() |
ITypedQuantity<LinearUnit> |
LinearUnit.customParseInteractive(java.lang.String interactiveQuantity)
Parse an interactive string, like
KindOfQuantity.parseInteractive(String) , with the
addition that this unit is accepted, even if not generally by the kind of quantity. |
protected ITypedQuantity<TimestampUnit> |
TimestampUnit.floorQuantize(double numericalValue,
ITypedQuantity<LinearUnit> quanta) |
protected abstract ITypedQuantity<U> |
TypedUnit.floorQuantize(double numericalValue,
ITypedQuantity<LinearUnit> quanta) |
protected ITypedQuantity<LinearUnit> |
LinearUnit.floorQuantize(double numericalValue,
ITypedQuantity<LinearUnit> quanta) |
ITypedQuantity<U> |
ITypedQuantity.floorQuantize(ITypedQuantity<LinearUnit> quanta) |
ITypedQuantity<U> |
ScalarQuantity.LongStored.floorQuantize(ITypedQuantity<LinearUnit> quanta) |
ITypedQuantity<U> |
ScalarQuantity.DoubleStored.floorQuantize(ITypedQuantity<LinearUnit> quanta) |
protected ITypedQuantity<TimestampUnit> |
TimestampUnit.floorQuantize(long numericalValue,
ITypedQuantity<LinearUnit> quanta) |
protected abstract ITypedQuantity<U> |
TypedUnit.floorQuantize(long numericalValue,
ITypedQuantity<LinearUnit> quanta) |
protected ITypedQuantity<LinearUnit> |
LinearUnit.floorQuantize(long numericalValue,
ITypedQuantity<LinearUnit> quanta) |
abstract ITypedQuantity<U> |
QuantityRange.getEnd() |
ITypedQuantity<U> |
QuantityRange.Point.getEnd() |
ITypedQuantity<U> |
QuantityRange.WithEnd.getEnd() |
ITypedQuantity<U> |
QuantityRange.WithExtent.getEnd() |
ITypedQuantity<LinearUnit> |
QuantityRange.WithEnd.getExtent() |
ITypedQuantity<LinearUnit> |
QuantityRange.WithExtent.getExtent() |
ITypedQuantity<U> |
QuantityRange.getStart() |
ITypedQuantity<U> |
ITypedQuantity.in(U targetUnit)
Get this quantity expressed in the unit
targetUnit . |
ITypedQuantity<U> |
ScalarQuantity.in(U targetUnit) |
ITypedQuantity<U> |
ITypedQuantity.multiply(double factor) |
ITypedQuantity<U> |
ScalarQuantity.LongStored.multiply(double factor) |
ITypedQuantity<U> |
ScalarQuantity.DoubleStored.multiply(double factor) |
ITypedQuantity<U> |
ITypedQuantity.multiply(long factor) |
ITypedQuantity<U> |
ScalarQuantity.LongStored.multiply(long factor) |
ITypedQuantity<U> |
ScalarQuantity.DoubleStored.multiply(long factor) |
ITypedQuantity<TimestampUnit> |
TimestampKind.parseInteractive(java.lang.String interactiveQuantity) |
ITypedQuantity<LinearUnit> |
LinearKindOfQuantity.parseInteractive(java.lang.String interactiveQuantity) |
abstract ITypedQuantity<U> |
KindOfQuantity.parseInteractive(java.lang.String interactiveQuantity)
Parse an interactive string.
|
ITypedQuantity<LinearUnit> |
LinearKindOfQuantity.parseInteractive(java.lang.String interactiveQuantity,
java.util.Map<java.lang.String,? extends LinearUnit> symbolToUnitMap) |
ITypedQuantity<TimestampUnit> |
TimestampKind.parsePersisted(java.lang.String persistedQuantity) |
ITypedQuantity<LinearUnit> |
LinearKindOfQuantity.parsePersisted(java.lang.String persistedQuantity) |
abstract ITypedQuantity<U> |
KindOfQuantity.parsePersisted(java.lang.String persistedQuantity)
Parse a persisted string.
|
ITypedQuantity<TimestampUnit> |
TimestampUnit.quantity(double numericalValue) |
abstract ITypedQuantity<U> |
TypedUnit.quantity(double numericalValue) |
ITypedQuantity<LinearUnit> |
LinearUnit.quantity(double numericalValue) |
ITypedQuantity<TimestampUnit> |
TimestampUnit.quantity(long numericalValue) |
abstract ITypedQuantity<U> |
TypedUnit.quantity(long numericalValue) |
ITypedQuantity<LinearUnit> |
LinearUnit.quantity(long numericalValue) |
ITypedQuantity<TimestampUnit> |
TimestampUnit.quantity(java.lang.Number numericalValue) |
ITypedQuantity<U> |
TypedUnit.quantity(java.lang.Number value) |
ITypedQuantity<LinearUnit> |
DecimalUnitSelector.snapToBestBetweenHalfAndEqual(ITypedQuantity<LinearUnit> upperLimit) |
ITypedQuantity<LinearUnit> |
LinearKindOfQuantity.snapToBestBetweenHalfAndEqual(ITypedQuantity<LinearUnit> upperLimit) |
ITypedQuantity<LinearUnit> |
LinearKindOfQuantity.LinearUnitSelector.snapToBestBetweenHalfAndEqual(ITypedQuantity<LinearUnit> upperLimit) |
ITypedQuantity<LinearUnit> |
CustomUnitSelector.snapToBestBetweenHalfAndEqual(ITypedQuantity<LinearUnit> upperLimit) |
ITypedQuantity<LinearUnit> |
BinaryUnitSelector.snapToBestBetweenHalfAndEqual(ITypedQuantity<LinearUnit> upperLimit) |
ITypedQuantity<LinearUnit> |
ITypedQuantity.subtract(ITypedQuantity<U> subtrahend) |
ITypedQuantity<LinearUnit> |
ScalarQuantity.LongStored.subtract(ITypedQuantity<U> subtrahend) |
ITypedQuantity<LinearUnit> |
ScalarQuantity.DoubleStored.subtract(ITypedQuantity<U> subtrahend) |
protected abstract ITypedQuantity<U> |
ScalarQuantity.subtractLinear(ITypedQuantity<LinearUnit> subtrahend) |
protected ITypedQuantity<U> |
ScalarQuantity.LongStored.subtractLinear(ITypedQuantity<LinearUnit> subtrahend) |
protected ITypedQuantity<U> |
ScalarQuantity.DoubleStored.subtractLinear(ITypedQuantity<LinearUnit> subtrahend) |
protected ITypedQuantity<LinearUnit> |
LinearUnit.subtractSame(long numericalMinuend,
LinearUnit subtrahendUnit,
long numericalSubtrahend) |
protected ITypedQuantity<LinearUnit> |
TimestampUnit.subtractSame(long numericalMinuend,
TimestampUnit subtrahendUnit,
long numericalSubtrahend) |
protected abstract ITypedQuantity<LinearUnit> |
TypedUnit.subtractSame(long numericalMinuend,
U subtrahendUnit,
long numericalSubtrahend) |
Modifier and Type | Method and Description |
---|---|
ITypedQuantity<U> |
ITypedQuantity.add(ITypedQuantity<LinearUnit> addend) |
ITypedQuantity<U> |
ScalarQuantity.LongStored.add(ITypedQuantity<LinearUnit> addend) |
ITypedQuantity<U> |
ScalarQuantity.DoubleStored.add(ITypedQuantity<LinearUnit> addend) |
static <U extends TypedUnit<U>> |
QuantityRange.createWithExtent(IQuantity start,
ITypedQuantity<LinearUnit> extent) |
protected ITypedQuantity<TimestampUnit> |
TimestampUnit.floorQuantize(double numericalValue,
ITypedQuantity<LinearUnit> quanta) |
protected abstract ITypedQuantity<U> |
TypedUnit.floorQuantize(double numericalValue,
ITypedQuantity<LinearUnit> quanta) |
protected ITypedQuantity<LinearUnit> |
LinearUnit.floorQuantize(double numericalValue,
ITypedQuantity<LinearUnit> quanta) |
ITypedQuantity<U> |
ITypedQuantity.floorQuantize(ITypedQuantity<LinearUnit> quanta) |
ITypedQuantity<U> |
ScalarQuantity.LongStored.floorQuantize(ITypedQuantity<LinearUnit> quanta) |
ITypedQuantity<U> |
ScalarQuantity.DoubleStored.floorQuantize(ITypedQuantity<LinearUnit> quanta) |
protected ITypedQuantity<TimestampUnit> |
TimestampUnit.floorQuantize(long numericalValue,
ITypedQuantity<LinearUnit> quanta) |
protected abstract ITypedQuantity<U> |
TypedUnit.floorQuantize(long numericalValue,
ITypedQuantity<LinearUnit> quanta) |
protected ITypedQuantity<LinearUnit> |
LinearUnit.floorQuantize(long numericalValue,
ITypedQuantity<LinearUnit> quanta) |
protected IRange<IQuantity> |
KindOfQuantity.getFirstBucket(ITypedQuantity<U> start,
ITypedQuantity<U> end,
double maxBuckets) |
protected IRange<IQuantity> |
KindOfQuantity.getFirstBucket(ITypedQuantity<U> start,
ITypedQuantity<U> end,
double maxBuckets) |
LinearUnit |
DecimalUnitSelector.getLargestExactUnit(ITypedQuantity<LinearUnit> quantity) |
LinearUnit |
CustomUnitSelector.getLargestExactUnit(ITypedQuantity<LinearUnit> quantity) |
LinearUnit |
BinaryUnitSelector.getLargestExactUnit(ITypedQuantity<LinearUnit> quantity) |
U |
TypedUnit.UnitSelector.getLargestExactUnit(ITypedQuantity<U> quantity)
Get the largest unit, if any, in which this quantity can be expressed exactly, typically
with an integer.
|
LinearUnit |
DecimalUnitSelector.getPreferredUnit(ITypedQuantity<LinearUnit> quantity,
double minNumericalValue,
double maxNumericalValue) |
LinearUnit |
CustomUnitSelector.getPreferredUnit(ITypedQuantity<LinearUnit> quantity,
double minNumericalValue,
double maxNumericalValue) |
LinearUnit |
BinaryUnitSelector.getPreferredUnit(ITypedQuantity<LinearUnit> quantity,
double minNumericalValue,
double maxNumericalValue) |
U |
TypedUnit.UnitSelector.getPreferredUnit(ITypedQuantity<U> quantity,
double minNumericalValue,
double maxNumericalValue) |
LinearUnit |
LinearKindOfQuantity.makeCustomUnit(ITypedQuantity<LinearUnit> quantity)
Create a custom unit.
|
LinearUnit |
LinearKindOfQuantity.makeUnit(java.lang.String id,
ITypedQuantity<LinearUnit> quantity)
Create an off-system unit with no default localized name.
|
LinearUnit |
LinearKindOfQuantity.makeUnit(java.lang.String id,
ITypedQuantity<LinearUnit> quantity,
java.lang.String localizedName) |
private LinearUnit |
LinearKindOfQuantity.makeUnit(java.lang.String id,
java.lang.String localizedSymbol,
ITypedQuantity<LinearUnit> quantity,
java.lang.String localizedName,
boolean custom)
Create an off-system unit.
|
private static java.lang.String |
QuantityConversionException.Quantity.readableProto(ITypedQuantity<LinearUnit> prototype,
LinearUnit userUnit)
Produce a string that presents a prototype value.
|
ITypedQuantity<LinearUnit> |
DecimalUnitSelector.snapToBestBetweenHalfAndEqual(ITypedQuantity<LinearUnit> upperLimit) |
ITypedQuantity<LinearUnit> |
LinearKindOfQuantity.snapToBestBetweenHalfAndEqual(ITypedQuantity<LinearUnit> upperLimit) |
ITypedQuantity<LinearUnit> |
LinearKindOfQuantity.LinearUnitSelector.snapToBestBetweenHalfAndEqual(ITypedQuantity<LinearUnit> upperLimit) |
ITypedQuantity<LinearUnit> |
CustomUnitSelector.snapToBestBetweenHalfAndEqual(ITypedQuantity<LinearUnit> upperLimit) |
ITypedQuantity<LinearUnit> |
BinaryUnitSelector.snapToBestBetweenHalfAndEqual(ITypedQuantity<LinearUnit> upperLimit) |
ITypedQuantity<LinearUnit> |
ITypedQuantity.subtract(ITypedQuantity<U> subtrahend) |
ITypedQuantity<LinearUnit> |
ScalarQuantity.LongStored.subtract(ITypedQuantity<U> subtrahend) |
ITypedQuantity<LinearUnit> |
ScalarQuantity.DoubleStored.subtract(ITypedQuantity<U> subtrahend) |
protected abstract ITypedQuantity<U> |
ScalarQuantity.subtractLinear(ITypedQuantity<LinearUnit> subtrahend) |
protected ITypedQuantity<U> |
ScalarQuantity.LongStored.subtractLinear(ITypedQuantity<LinearUnit> subtrahend) |
protected ITypedQuantity<U> |
ScalarQuantity.DoubleStored.subtractLinear(ITypedQuantity<LinearUnit> subtrahend) |
Modifier and Type | Method and Description |
---|---|
private static void |
UnitLookup.addQuantities(java.util.Collection<ITypedQuantity<LinearUnit>> result,
LinearUnit unit,
java.lang.Number... numbers) |
Constructor and Description |
---|
Point(ITypedQuantity<U> start) |
QuantityRange(ITypedQuantity<U> start) |
WithEnd(ITypedQuantity<U> start,
ITypedQuantity<U> end) |
WithEnd(ITypedQuantity<U> start,
ITypedQuantity<U> end) |
WithExtent(ITypedQuantity<U> start,
ITypedQuantity<LinearUnit> extent) |
WithExtent(ITypedQuantity<U> start,
ITypedQuantity<LinearUnit> extent) |
Constructor and Description |
---|
CustomUnitSelector(LinearKindOfQuantity kindOfQuantity,
LinearKindOfQuantity.LinearUnitSelector smallSelector,
java.util.Collection<LinearUnit> units,
LinearKindOfQuantity.LinearUnitSelector bigSelector,
java.util.SortedSet<ITypedQuantity<LinearUnit>> ticks) |