Uses of Class
org.openjdk.jmc.common.unit.LinearUnit
-
Packages that use LinearUnit Package Description org.openjdk.jmc.common.unit This package contains the data model for quantities and units. -
-
Uses of LinearUnit in org.openjdk.jmc.common.unit
Subclasses of LinearUnit in org.openjdk.jmc.common.unit Modifier and Type Class Description protected static class
LinearUnit.Custom
Fields in org.openjdk.jmc.common.unit declared as LinearUnit Modifier and Type Field Description static LinearUnit
UnitLookup. ADDRESS_UNITY
protected LinearUnit
LinearKindOfQuantity. atomUnit
static LinearUnit
UnitLookup. BYTE
static LinearUnit
UnitLookup. DAY
protected LinearUnit
DecimalUnitSelector. exponentialBaseUnit
static LinearUnit
UnitLookup. GIBIBYTE
static LinearUnit
UnitLookup. HERTZ
static LinearUnit
UnitLookup. HOUR
static LinearUnit
UnitLookup. MICROSECOND
static LinearUnit
UnitLookup. MILLISECOND
static LinearUnit
UnitLookup. MINUTE
static LinearUnit
UnitLookup. NANOSECOND
static LinearUnit
UnitLookup. NUMBER_UNITY
static LinearUnit
UnitLookup. PERCENT
static LinearUnit
UnitLookup. PERCENT_UNITY
static LinearUnit
UnitLookup. SECOND
protected LinearUnit[]
CustomUnitSelector. unitArr
static LinearUnit
UnitLookup. YEAR
Fields in org.openjdk.jmc.common.unit with type parameters of type LinearUnit Modifier and Type Field Description protected Collection<LinearUnit>
LinearKindOfQuantity. allUnits
protected Collection<LinearUnit>
LinearKindOfQuantity. commonUnits
protected Map<String,LinearUnit>
LinearKindOfQuantity. interactiveSymbolToUnitMap
protected ArrayList<ITypedQuantity<LinearUnit>>
CustomUnitSelector. tickList
protected Map<ScaleFactor,LinearUnit>
BinaryUnitSelector. unitCache
protected Map<ScaleFactor,LinearUnit>
DecimalUnitSelector. unitCache
protected Map<Object,LinearUnit>
LinearKindOfQuantity. unitCache
Methods in org.openjdk.jmc.common.unit that return LinearUnit Modifier and Type Method Description LinearUnit
LinearKindOfQuantity. getCachedUnit(Object key)
LinearUnit
LinearKindOfQuantity. getDefaultUnit()
LinearUnit
IUnit. getDeltaUnit()
Get the unit that the difference between two quantities in this unit will have.LinearUnit
LinearUnit. getDeltaUnit()
LinearUnit
TimestampUnit. getDeltaUnit()
LinearUnit
BinaryUnitSelector. getLargestExactUnit(ITypedQuantity<LinearUnit> quantity)
LinearUnit
CustomUnitSelector. getLargestExactUnit(ITypedQuantity<LinearUnit> quantity)
LinearUnit
DecimalUnitSelector. getLargestExactUnit(ITypedQuantity<LinearUnit> quantity)
LinearUnit
LinearKindOfQuantity. getLargestExactUnit(IQuantity quantity)
LinearUnit
BinaryUnitSelector. getPreferredUnit(ITypedQuantity<LinearUnit> quantity, double minNumericalValue, double maxNumericalValue)
LinearUnit
CustomUnitSelector. getPreferredUnit(ITypedQuantity<LinearUnit> quantity, double minNumericalValue, double maxNumericalValue)
LinearUnit
DecimalUnitSelector. getPreferredUnit(ITypedQuantity<LinearUnit> quantity, double minNumericalValue, double maxNumericalValue)
LinearUnit
LinearKindOfQuantity. getPreferredUnit(IQuantity quantity, double minNumericalValue, double maxNumericalValue)
protected LinearUnit
LinearUnit. getScaledUnit(LinearUnit deltaUnit)
LinearUnit
LinearKindOfQuantity. getUnit(String id)
LinearUnit
LinearKindOfQuantity. getUnit(IPrefix<?> prefix)
LinearUnit
LinearKindOfQuantity. makeCustomUnit(ITypedQuantity<LinearUnit> quantity)
Create a custom unit.LinearUnit
LinearKindOfQuantity. makeUnit(String id, ITypedQuantity<LinearUnit> quantity)
Create an off-system unit with no default localized name.LinearUnit
LinearKindOfQuantity. makeUnit(String id, ITypedQuantity<LinearUnit> quantity, String localizedName)
Methods in org.openjdk.jmc.common.unit that return types with arguments of type LinearUnit Modifier and Type Method Description protected ITypedQuantity<LinearUnit>
LinearUnit. add(long numericalAugend, LinearUnit addendUnit, long numericalAddend)
ITypedQuantity<LinearUnit>
LinearUnit. asWellKnownQuantity()
ITypedQuantity<LinearUnit>
LinearUnit.Custom. asWellKnownQuantity()
ITypedQuantity<LinearUnit>
LinearUnit. customParseInteractive(String interactiveQuantity)
Parse an interactive string, likeKindOfQuantity.parseInteractive(String)
, with the addition that this unit is accepted, even if not generally by the kind of quantity.protected ITypedQuantity<LinearUnit>
LinearUnit. floorQuantize(double numericalValue, ITypedQuantity<LinearUnit> quanta)
protected ITypedQuantity<LinearUnit>
LinearUnit. floorQuantize(long numericalValue, ITypedQuantity<LinearUnit> quanta)
Collection<LinearUnit>
LinearKindOfQuantity. getAllUnits()
Collection<LinearUnit>
LinearKindOfQuantity. getCommonUnits()
abstract KindOfQuantity<LinearUnit>
KindOfQuantity. getDeltaKind()
KindOfQuantity<LinearUnit>
LinearKindOfQuantity. getDeltaKind()
protected Class<LinearUnit>
LinearUnit. getUnitClass()
ITypedQuantity<LinearUnit>
LinearKindOfQuantity. parseInteractive(String interactiveQuantity)
ITypedQuantity<LinearUnit>
LinearKindOfQuantity. parseInteractive(String interactiveQuantity, Map<String,? extends LinearUnit> symbolToUnitMap)
ITypedQuantity<LinearUnit>
LinearKindOfQuantity. parsePersisted(String persistedQuantity)
ITypedQuantity<LinearUnit>
LinearUnit. quantity(double numericalValue)
ITypedQuantity<LinearUnit>
LinearUnit. quantity(long numericalValue)
ITypedQuantity<LinearUnit>
BinaryUnitSelector. snapToBestBetweenHalfAndEqual(ITypedQuantity<LinearUnit> upperLimit)
ITypedQuantity<LinearUnit>
CustomUnitSelector. snapToBestBetweenHalfAndEqual(ITypedQuantity<LinearUnit> upperLimit)
ITypedQuantity<LinearUnit>
DecimalUnitSelector. snapToBestBetweenHalfAndEqual(ITypedQuantity<LinearUnit> upperLimit)
ITypedQuantity<LinearUnit>
LinearKindOfQuantity.LinearUnitSelector. snapToBestBetweenHalfAndEqual(ITypedQuantity<LinearUnit> upperLimit)
ITypedQuantity<LinearUnit>
LinearKindOfQuantity. snapToBestBetweenHalfAndEqual(ITypedQuantity<LinearUnit> upperLimit)
ITypedQuantity<LinearUnit>
ITypedQuantity. subtract(ITypedQuantity<U> 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)
Methods in org.openjdk.jmc.common.unit with parameters of type LinearUnit Modifier and Type Method Description protected ITypedQuantity<LinearUnit>
LinearUnit. add(long numericalAugend, LinearUnit addendUnit, long numericalAddend)
protected ITypedQuantity<TimestampUnit>
TimestampUnit. add(long numericalAugend, LinearUnit addendUnit, long numericalAddend)
protected abstract ITypedQuantity<U>
TypedUnit. add(long numericalAugend, LinearUnit addendUnit, long numericalAddend)
protected void
LinearKindOfQuantity. addUnit(LinearUnit unit)
protected void
LinearKindOfQuantity. addUnit(LinearUnit unit, boolean common)
Add a unit so that it is available for parsing and content assist, optionally also for direct selection by users.int
LinearUnit. compareTo(LinearUnit other)
static String
LinearKindOfQuantity.AutoFormatter. formatInUnit(IQuantity quantity, LinearUnit customUnit, int nominalValueDigits)
protected static String
LinearKindOfQuantity.AutoFormatter. formatWithFixedFraction(Number numValue, LinearUnit customUnit, int numFractionDigits)
protected static String
LinearKindOfQuantity.AutoFormatter. formatWithUnit(Number numValue, LinearUnit customUnit, int nominalValueDigits)
protected LinearUnit
LinearUnit. getScaledUnit(LinearUnit deltaUnit)
protected TimestampUnit
TimestampUnit. getScaledUnit(LinearUnit deltaUnit)
protected abstract U
TypedUnit. getScaledUnit(LinearUnit deltaUnit)
Return a unit with the same origin (if absolute) as this unit, but with the givendeltaUnit
as its delta unit.protected ITypedQuantity<LinearUnit>
LinearUnit. subtractSame(long numericalMinuend, LinearUnit subtrahendUnit, long numericalSubtrahend)
ScaleFactor
LinearUnit. valueTransformTo(LinearUnit targetUnit)
Method parameters in org.openjdk.jmc.common.unit with type arguments of type LinearUnit Modifier and Type Method Description ITypedQuantity<U>
ITypedQuantity. add(ITypedQuantity<LinearUnit> addend)
static <U extends TypedUnit<U>>
IRange<IQuantity>QuantityRange. createWithExtent(IQuantity start, ITypedQuantity<LinearUnit> extent)
ITypedQuantity<U>
ITypedQuantity. floorQuantize(ITypedQuantity<LinearUnit> quanta)
protected ITypedQuantity<LinearUnit>
LinearUnit. floorQuantize(double numericalValue, ITypedQuantity<LinearUnit> quanta)
protected ITypedQuantity<LinearUnit>
LinearUnit. floorQuantize(long numericalValue, ITypedQuantity<LinearUnit> quanta)
protected ITypedQuantity<TimestampUnit>
TimestampUnit. floorQuantize(double numericalValue, ITypedQuantity<LinearUnit> quanta)
protected ITypedQuantity<TimestampUnit>
TimestampUnit. floorQuantize(long numericalValue, ITypedQuantity<LinearUnit> quanta)
protected abstract ITypedQuantity<U>
TypedUnit. floorQuantize(double numericalValue, ITypedQuantity<LinearUnit> quanta)
protected abstract ITypedQuantity<U>
TypedUnit. floorQuantize(long numericalValue, ITypedQuantity<LinearUnit> quanta)
LinearUnit
BinaryUnitSelector. getLargestExactUnit(ITypedQuantity<LinearUnit> quantity)
LinearUnit
CustomUnitSelector. getLargestExactUnit(ITypedQuantity<LinearUnit> quantity)
LinearUnit
DecimalUnitSelector. getLargestExactUnit(ITypedQuantity<LinearUnit> quantity)
LinearUnit
BinaryUnitSelector. getPreferredUnit(ITypedQuantity<LinearUnit> quantity, double minNumericalValue, double maxNumericalValue)
LinearUnit
CustomUnitSelector. getPreferredUnit(ITypedQuantity<LinearUnit> quantity, double minNumericalValue, double maxNumericalValue)
LinearUnit
DecimalUnitSelector. getPreferredUnit(ITypedQuantity<LinearUnit> quantity, double minNumericalValue, double maxNumericalValue)
LinearUnit
LinearKindOfQuantity. makeCustomUnit(ITypedQuantity<LinearUnit> quantity)
Create a custom unit.LinearUnit
LinearKindOfQuantity. makeUnit(String id, ITypedQuantity<LinearUnit> quantity)
Create an off-system unit with no default localized name.LinearUnit
LinearKindOfQuantity. makeUnit(String id, ITypedQuantity<LinearUnit> quantity, String localizedName)
ITypedQuantity<LinearUnit>
LinearKindOfQuantity. parseInteractive(String interactiveQuantity, Map<String,? extends LinearUnit> symbolToUnitMap)
ITypedQuantity<LinearUnit>
BinaryUnitSelector. snapToBestBetweenHalfAndEqual(ITypedQuantity<LinearUnit> upperLimit)
ITypedQuantity<LinearUnit>
CustomUnitSelector. snapToBestBetweenHalfAndEqual(ITypedQuantity<LinearUnit> upperLimit)
ITypedQuantity<LinearUnit>
DecimalUnitSelector. snapToBestBetweenHalfAndEqual(ITypedQuantity<LinearUnit> upperLimit)
ITypedQuantity<LinearUnit>
LinearKindOfQuantity.LinearUnitSelector. snapToBestBetweenHalfAndEqual(ITypedQuantity<LinearUnit> upperLimit)
ITypedQuantity<LinearUnit>
LinearKindOfQuantity. snapToBestBetweenHalfAndEqual(ITypedQuantity<LinearUnit> upperLimit)
Constructors in org.openjdk.jmc.common.unit with parameters of type LinearUnit Constructor Description Custom(LinearKindOfQuantity kindOfQuantity, String unitId, ScaleFactor factorToDefinition, LinearUnit definitionUnit, String unitSymbol, String unitDesc, String... altNames)
DecimalUnitSelector(LinearKindOfQuantity kindOfQuantity, LinearUnit exponentialBaseUnit)
DualUnitFormatter(LinearKindOfQuantity kindOfQuantity, String id, String name, LinearUnit cutoffUnit)
DualUnitFormatter(LinearKindOfQuantity kindOfQuantity, String id, String name, TypedUnit.UnitSelector<LinearUnit> unitSelector, LinearUnit cutoffUnit)
Constructor parameters in org.openjdk.jmc.common.unit with type arguments of type LinearUnit Constructor Description CustomUnitSelector(LinearKindOfQuantity kindOfQuantity, LinearKindOfQuantity.LinearUnitSelector smallSelector, Collection<LinearUnit> units, LinearKindOfQuantity.LinearUnitSelector bigSelector, SortedSet<ITypedQuantity<LinearUnit>> ticks)
CustomUnitSelector(LinearKindOfQuantity kindOfQuantity, LinearKindOfQuantity.LinearUnitSelector smallSelector, Collection<LinearUnit> units, LinearKindOfQuantity.LinearUnitSelector bigSelector, SortedSet<ITypedQuantity<LinearUnit>> ticks)
DualUnitFormatter(LinearKindOfQuantity kindOfQuantity, String id, String name, TypedUnit.UnitSelector<LinearUnit> unitSelector)
DualUnitFormatter(LinearKindOfQuantity kindOfQuantity, String id, String name, TypedUnit.UnitSelector<LinearUnit> unitSelector, LinearUnit cutoffUnit)
-