Package | Description |
---|---|
org.openjdk.jmc.common.unit |
This package contains the data model for quantities and units.
|
org.openjdk.jmc.flightrecorder.rules.util |
Modifier and Type | Class and Description |
---|---|
static class |
QuantityConversionException.Persisted |
static class |
QuantityConversionException.Quantity |
Modifier and Type | Method and Description |
---|---|
static <Q extends IQuantity> |
QuantityConversionException.belowPrecision(Q badValue,
Q precisionLimit) |
static <T extends Comparable<T>> |
QuantityConversionException.belowPrecision(T badValue,
T precisionLimit,
IPersister<T> persister) |
static QuantityConversionException |
QuantityConversionException.conflictingConstraints(Object value,
String key) |
static QuantityConversionException |
QuantityConversionException.noUnit(String badString,
IQuantity prototype) |
static <T extends Comparable<T>> |
QuantityConversionException.noUnit(String badString,
T prototype,
IPersister<T> persister) |
static <Q extends IQuantity> |
QuantityConversionException.tooHigh(Q badValue,
Q max) |
static <T extends Comparable<T>> |
QuantityConversionException.tooHigh(T badValue,
T max,
IPersister<T> persister) |
static <Q extends IQuantity> |
QuantityConversionException.tooLow(Q badValue,
Q min) |
static <T extends Comparable<T>> |
QuantityConversionException.tooLow(T badValue,
T min,
IPersister<T> persister) |
static QuantityConversionException |
QuantityConversionException.unknownUnit(String badString,
IQuantity prototype) |
static <T extends Comparable<T>> |
QuantityConversionException.unknownUnit(String badString,
T prototype,
IPersister<T> persister) |
static QuantityConversionException |
QuantityConversionException.unparsable(String badString,
IQuantity prototype) |
static <T extends Comparable<T>> |
QuantityConversionException.unparsable(String badString,
T prototype,
IPersister<T> persister) |
Modifier and Type | Method and Description |
---|---|
static <U,T extends Comparable<T>> |
ComparableConstraint.constrain(IConstraint<U> constraint,
String persistedMin,
String persistedMax) |
ITypedQuantity<LinearUnit> |
LinearUnit.customParseInteractive(String interactiveQuantity)
Parse an interactive string, like
KindOfQuantity.parseInteractive(String) , with the
addition that this unit is accepted, even if not generally by the kind of quantity. |
String |
IConstraint.interactiveFormat(T value)
An exact string representation taking locale and internationalization into account.
|
String |
ComparableConstraint.interactiveFormat(T value) |
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] . |
T |
IConstraint.parseInteractive(String interactiveValue)
Parse an interactive string.
|
abstract ITypedQuantity<U> |
KindOfQuantity.parseInteractive(String interactiveQuantity)
Parse an interactive string.
|
ITypedQuantity<LinearUnit> |
LinearKindOfQuantity.parseInteractive(String interactiveQuantity) |
T |
WrappingPersister.parseInteractive(String interactiveValue) |
T |
ComparableConstraint.parseInteractive(String interactiveValue) |
ITypedQuantity<LinearUnit> |
LinearKindOfQuantity.parseInteractive(String interactiveQuantity,
Map<String,? extends LinearUnit> symbolToUnitMap) |
T |
IConstraint.parsePersisted(String persistedValue)
Parse a persisted string.
|
abstract ITypedQuantity<U> |
KindOfQuantity.parsePersisted(String persistedQuantity)
Parse a persisted string.
|
ITypedQuantity<LinearUnit> |
LinearKindOfQuantity.parsePersisted(String persistedQuantity) |
T |
WrappingPersister.parsePersisted(String persistedValue) |
T |
ComparableConstraint.parsePersisted(String persistedValue) |
String |
IConstraint.persistableString(T value)
A string representation independent of locale or internationalization, that when parsed using
IConstraint.parsePersisted(String) (on this instance) yields a result that is
equal to the given value . |
String |
ComparableConstraint.persistableString(T value) |
<T> void |
IMutableConstrainedMap.put(K key,
IConstraint<T> constraint,
T value)
Map
key to value , if allowed according to constraint and additional
restrictions on this map such as a conflicting constraint being in effect
for this key . |
<T> void |
MutableConstrainedMap.put(K key,
IConstraint<T> constraint,
T value) |
void |
IMutableConstrainedMap.put(K key,
Object value)
Map
key to value , if allowed according to either an existing
constraint or an implicit default constraint, if available. |
void |
MutableConstrainedMap.put(K key,
Object value) |
<T> void |
IMutableConstrainedMap.putPersistedString(K key,
IConstraint<T> constraint,
String persisted)
Map
key to the value obtained by parsing persisted , if allowed according to
constraint and additional restrictions on this map such as a conflicting
constraint being in effect for this key . |
<T> void |
MutableConstrainedMap.putPersistedString(K key,
IConstraint<T> constraint,
String persisted) |
void |
IMutableConstrainedMap.putPersistedString(K key,
String persisted)
Map
key to the value obtained by parsing persisted , if allowed according to
either an existing constraint or an implicit default constraint, if
available. |
void |
MutableConstrainedMap.putPersistedString(K key,
String persisted) |
boolean |
IConstraint.validate(T value)
Fundamentally, check that
value satisfies this constraint and throw an exception
otherwise. |
boolean |
ComparableConstraint.validate(T value) |
protected boolean |
ComparableConstraint.validateRange(T value) |
Modifier and Type | Method and Description |
---|---|
static IQuantity |
RulesToolkit.parsePersistedJvmTimespan(String persistedValue)
Converts a value persisted as a string by the JVM into an
IQuantity . |
Copyright © 2020. All rights reserved.