| 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.
|
| Modifier and Type | Field and Description |
|---|---|
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 |
static IAttribute<IUnit> |
UnitLookup.UNIT_ATTRIBUTE |
| Modifier and Type | Method and Description |
|---|---|
IUnit |
IQuantity.getUnit() |
static IUnit |
UnitLookup.getUnitOrDefault(String unitIdentifier) |
static IUnit |
UnitLookup.getUnitOrNull(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. |
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. |
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. |
double |
IQuantity.doubleValueIn(IUnit targetUnit)
Get the numerical quantity value that this quantity would have if expressed in the unit
targetUnit, as a double. |
static <U extends TypedUnit<U>> |
KindOfQuantity.format(Number number,
IUnit unit)
Convenience method (possibly temporary) until type parameters has settled.
|
static String |
UnitLookup.getUnitIdentifier(IUnit unit) |
IQuantity |
IQuantity.in(IUnit targetUnit)
Get this quantity expressed in the unit
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 |
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]. |
Number |
IQuantity.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. |
Copyright © 2019. All rights reserved.