Package | Description |
---|---|
org.openjdk.jmc.common.item |
This package contains the
IItem data model. |
org.openjdk.jmc.common.unit |
This package contains the data model for quantities and units.
|
org.openjdk.jmc.flightrecorder.internal.parser.v0 | |
org.openjdk.jmc.flightrecorder.internal.parser.v1 |
Modifier and Type | Field and Description |
---|---|
(package private) IUnit |
Aggregators.SumConsumer.unit |
IUnit |
Aggregators.VarianceConsumer.unit |
IUnit |
Aggregators.AvgConsumer.unit |
Modifier and Type | Class and Description |
---|---|
class |
LinearUnit
A measurement unit for a particular kind of quantity.
|
protected static class |
LinearUnit.Custom |
class |
TimestampUnit |
class |
TypedUnit<U extends TypedUnit<U>>
Type parameterized extension of
IUnit . |
Modifier and Type | Field and Description |
---|---|
static ContentType<IUnit> |
UnitLookup.UNIT |
private static IMemberAccessor<IUnit,IQuantity> |
KindOfQuantity.UNIT_ACCESSOR |
static IAttribute<IUnit> |
UnitLookup.UNIT_ATTRIBUTE |
Modifier and Type | Method and Description |
---|---|
IUnit |
IQuantity.getUnit() |
static IUnit |
UnitLookup.getUnitOrDefault(java.lang.String unitIdentifier) |
static IUnit |
UnitLookup.getUnitOrNull(java.lang.String unitIdentifier) |
Modifier and Type | Method and Description |
---|---|
long |
IQuantity.clampedFloorIn(IUnit targetUnit)
Get the
long value closest to the floor of the numerical quantity value that this
quantity would have if expressed in the unit targetUnit . |
long |
ScalarQuantity.LongStored.clampedFloorIn(IUnit targetUnit) |
long |
ScalarQuantity.DoubleStored.clampedFloorIn(IUnit targetUnit) |
int |
IQuantity.clampedIntFloorIn(IUnit targetUnit)
Get the
int value closest to the floor of the numerical quantity value that this
quantity would have if expressed in the unit targetUnit . |
int |
ScalarQuantity.LongStored.clampedIntFloorIn(IUnit targetUnit) |
int |
ScalarQuantity.DoubleStored.clampedIntFloorIn(IUnit targetUnit) |
long |
IQuantity.clampedLongValueIn(IUnit targetUnit)
Get the
long value closest to the numerical quantity value that this quantity would
have if expressed in the unit targetUnit . |
long |
ScalarQuantity.LongStored.clampedLongValueIn(IUnit targetUnit) |
long |
ScalarQuantity.DoubleStored.clampedLongValueIn(IUnit targetUnit) |
double |
IQuantity.doubleValueIn(IUnit targetUnit)
Get the numerical quantity value that this quantity would have if expressed in the unit
targetUnit , as a double . |
double |
ScalarQuantity.LongStored.doubleValueIn(IUnit targetUnit) |
double |
ScalarQuantity.DoubleStored.doubleValueIn(IUnit targetUnit) |
static <U extends TypedUnit<U>> |
KindOfQuantity.format(java.lang.Number number,
IUnit unit)
Convenience method (possibly temporary) until type parameters has settled.
|
static java.lang.String |
UnitLookup.getUnitIdentifier(IUnit unit) |
IQuantity |
IQuantity.in(IUnit targetUnit)
Get this quantity expressed in the unit
targetUnit . |
IQuantity |
ScalarQuantity.in(IUnit targetUnit) |
long |
IQuantity.longValueIn(IUnit targetUnit)
Get the numerical quantity value that this quantity would have if expressed in the unit
targetUnit , rounded to a mathematical integer, if that numerical value can be
represented in a long . |
long |
ScalarQuantity.longValueIn(IUnit targetUnit) |
long |
IQuantity.longValueIn(IUnit targetUnit,
long maxAbsValue)
Get the numerical quantity value that this quantity would have if expressed in the unit
targetUnit , rounded to a mathematical integer, if that numerical value is in the
range [-maxAbsValue-1, maxAbsValue] . |
long |
ScalarQuantity.LongStored.longValueIn(IUnit targetUnit,
long maxAbsValue) |
long |
ScalarQuantity.DoubleStored.longValueIn(IUnit targetUnit,
long maxAbsValue) |
java.lang.Number |
IQuantity.numberValueIn(IUnit targetUnit)
Get the numerical quantity value that this quantity would have if expressed in the unit
targetUnit , as either a Long or a Number with at least the precision
of double . |
java.lang.Number |
ScalarQuantity.LongStored.numberValueIn(IUnit targetUnit) |
java.lang.Number |
ScalarQuantity.DoubleStored.numberValueIn(IUnit targetUnit) |
IScalarAffineTransform |
TypedUnit.valueTransformTo(IUnit targetUnit) |
IScalarAffineTransform |
IUnit.valueTransformTo(IUnit targetUnit)
Get a transform for transforming numerical quantity values expressed in this unit to
numerical quantity values expressed in
targetUnit . |
Constructor and Description |
---|
FractionFormatter(IUnit resolutionUnit) |
LegacyAndFractionFormatter(FormatThreadLocal<java.text.DateFormat> dfHolder,
IUnit resolutionUnit) |
Modifier and Type | Field and Description |
---|---|
private IUnit |
QuantityReader.unit |
Constructor and Description |
---|
QuantityReader(DataType dataType,
IUnit unit) |
Modifier and Type | Field and Description |
---|---|
private IUnit |
ValueReaders.QuantityReader.unit |
(package private) IUnit |
ChunkMetadata.FieldElement.unit |
Constructor and Description |
---|
QuantityReader(java.lang.String typeIdentifier,
IUnit unit,
boolean unsigned) |