Uses of Interface
org.openjdk.jmc.common.unit.IUnit
Packages that use IUnit
Package
Description
This package contains the
IItem
data model.This package contains the data model for quantities and units.
-
Uses of IUnit in org.openjdk.jmc.common.item
Fields in org.openjdk.jmc.common.item declared as IUnit -
Uses of IUnit in org.openjdk.jmc.common.unit
Classes in org.openjdk.jmc.common.unit that implement IUnitModifier and TypeClassDescriptionclass
A measurement unit for a particular kind of quantity.protected static class
class
class
Type parameterized extension ofIUnit
.Fields in org.openjdk.jmc.common.unit with type parameters of type IUnitModifier and TypeFieldDescriptionstatic final ContentType<IUnit>
UnitLookup.UNIT
static final IAttribute<IUnit>
UnitLookup.UNIT_ATTRIBUTE
Methods in org.openjdk.jmc.common.unit that return IUnitModifier and TypeMethodDescriptionIQuantity.getUnit()
static IUnit
UnitLookup.getUnitOrDefault
(String unitIdentifier) static IUnit
UnitLookup.getUnitOrNull
(String unitIdentifier) Methods in org.openjdk.jmc.common.unit with parameters of type IUnitModifier and TypeMethodDescriptionlong
IQuantity.clampedFloorIn
(IUnit targetUnit) Get thelong
value closest to the floor of the numerical quantity value that this quantity would have if expressed in the unittargetUnit
.int
IQuantity.clampedIntFloorIn
(IUnit targetUnit) Get theint
value closest to the floor of the numerical quantity value that this quantity would have if expressed in the unittargetUnit
.long
IQuantity.clampedLongValueIn
(IUnit targetUnit) Get thelong
value closest to the numerical quantity value that this quantity would have if expressed in the unittargetUnit
.double
IQuantity.doubleValueIn
(IUnit targetUnit) Get the numerical quantity value that this quantity would have if expressed in the unittargetUnit
, as adouble
.Convenience method (possibly temporary) until type parameters has settled.static String
UnitLookup.getUnitIdentifier
(IUnit unit) Get this quantity expressed in the unittargetUnit
.long
IQuantity.longValueIn
(IUnit targetUnit) Get the numerical quantity value that this quantity would have if expressed in the unittargetUnit
, rounded to a mathematical integer, if that numerical value can be represented in along
.long
IQuantity.longValueIn
(IUnit targetUnit, long maxAbsValue) Get the numerical quantity value that this quantity would have if expressed in the unittargetUnit
, rounded to a mathematical integer, if that numerical value is in the range[-maxAbsValue-1, maxAbsValue]
.IQuantity.numberValueIn
(IUnit targetUnit) IUnit.valueTransformTo
(IUnit targetUnit) Get a transform for transforming numerical quantity values expressed in this unit to numerical quantity values expressed intargetUnit
.TypedUnit.valueTransformTo
(IUnit targetUnit)