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 TypeClassDescriptionclassA measurement unit for a particular kind of quantity.protected static classclassclassType parameterized extension ofIUnit.Fields in org.openjdk.jmc.common.unit with type parameters of type IUnitModifier and TypeFieldDescriptionstatic final ContentType<IUnit>UnitLookup.UNITstatic final IAttribute<IUnit>UnitLookup.UNIT_ATTRIBUTEMethods in org.openjdk.jmc.common.unit that return IUnitModifier and TypeMethodDescriptionIQuantity.getUnit()static IUnitUnitLookup.getUnitOrDefault(String unitIdentifier) static IUnitUnitLookup.getUnitOrNull(String unitIdentifier) Methods in org.openjdk.jmc.common.unit with parameters of type IUnitModifier and TypeMethodDescriptionlongIQuantity.clampedFloorIn(IUnit targetUnit) Get thelongvalue closest to the floor of the numerical quantity value that this quantity would have if expressed in the unittargetUnit.intIQuantity.clampedIntFloorIn(IUnit targetUnit) Get theintvalue closest to the floor of the numerical quantity value that this quantity would have if expressed in the unittargetUnit.longIQuantity.clampedLongValueIn(IUnit targetUnit) Get thelongvalue closest to the numerical quantity value that this quantity would have if expressed in the unittargetUnit.doubleIQuantity.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 StringUnitLookup.getUnitIdentifier(IUnit unit) Get this quantity expressed in the unittargetUnit.longIQuantity.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.longIQuantity.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)