Uses of Class
org.openjdk.jmc.common.unit.QuantityConversionException
Packages that use QuantityConversionException
Package
Description
This package contains the data model for quantities and units.
-
Uses of QuantityConversionException in org.openjdk.jmc.common.unit
Subclasses of QuantityConversionException in org.openjdk.jmc.common.unitModifier and TypeClassDescriptionstatic class
static class
Methods in org.openjdk.jmc.common.unit that return QuantityConversionExceptionModifier and TypeMethodDescriptionstatic <Q extends IQuantity>
QuantityConversionExceptionQuantityConversionException.belowPrecision
(Q badValue, Q precisionLimit) static <T extends Comparable<T>>
QuantityConversionExceptionQuantityConversionException.belowPrecision
(T badValue, T precisionLimit, IPersister<T> persister) static QuantityConversionException
QuantityConversionException.conflictingConstraints
(Object value, String key) static QuantityConversionException
static <T extends Comparable<T>>
QuantityConversionExceptionQuantityConversionException.noUnit
(String badString, T prototype, IPersister<T> persister) static <Q extends IQuantity>
QuantityConversionExceptionQuantityConversionException.tooHigh
(Q badValue, Q max) static <T extends Comparable<T>>
QuantityConversionExceptionQuantityConversionException.tooHigh
(T badValue, T max, IPersister<T> persister) static <Q extends IQuantity>
QuantityConversionExceptionQuantityConversionException.tooLow
(Q badValue, Q min) static <T extends Comparable<T>>
QuantityConversionExceptionQuantityConversionException.tooLow
(T badValue, T min, IPersister<T> persister) static QuantityConversionException
QuantityConversionException.unknownUnit
(String badString, IQuantity prototype) static <T extends Comparable<T>>
QuantityConversionExceptionQuantityConversionException.unknownUnit
(String badString, T prototype, IPersister<T> persister) static QuantityConversionException
QuantityConversionException.unparsable
(String badString, IQuantity prototype) static <T extends Comparable<T>>
QuantityConversionExceptionQuantityConversionException.unparsable
(String badString, T prototype, IPersister<T> persister) Methods in org.openjdk.jmc.common.unit that throw QuantityConversionExceptionModifier and TypeMethodDescriptionstatic <U,
T extends Comparable<T>>
IConstraint<U>ComparableConstraint.constrain
(IConstraint<U> constraint, String persistedMin, String persistedMax) 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.ComparableConstraint.interactiveFormat
(T value) IConstraint.interactiveFormat
(T value) An exact string representation taking locale and internationalization into account.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]
.ComparableConstraint.parseInteractive
(String interactiveValue) IConstraint.parseInteractive
(String interactiveValue) Parse an interactive string.abstract ITypedQuantity<U>
KindOfQuantity.parseInteractive
(String interactiveQuantity) Parse an interactive string.LinearKindOfQuantity.parseInteractive
(String interactiveQuantity) LinearKindOfQuantity.parseInteractive
(String interactiveQuantity, Map<String, ? extends LinearUnit> symbolToUnitMap) WrappingPersister.parseInteractive
(String interactiveValue) ComparableConstraint.parsePersisted
(String persistedValue) IConstraint.parsePersisted
(String persistedValue) Parse a persisted string.abstract ITypedQuantity<U>
KindOfQuantity.parsePersisted
(String persistedQuantity) Parse a persisted string.LinearKindOfQuantity.parsePersisted
(String persistedQuantity) WrappingPersister.parsePersisted
(String persistedValue) ComparableConstraint.persistableString
(T value) IConstraint.persistableString
(T value) A string representation independent of locale or internationalization, that when parsed usingIConstraint.parsePersisted(String)
(on this instance) yields a result that isequal
to the givenvalue
.void
Mapkey
tovalue
, if allowed according to either an existingconstraint
or an implicit default constraint, if available.<T> void
IMutableConstrainedMap.put
(K key, IConstraint<T> constraint, T value) Mapkey
tovalue
, if allowed according toconstraint
and additional restrictions on this map such as a conflictingconstraint
being in effect for thiskey
.void
<T> void
MutableConstrainedMap.put
(K key, IConstraint<T> constraint, T value) void
IMutableConstrainedMap.putPersistedString
(K key, String persisted) Mapkey
to the value obtained by parsingpersisted
, if allowed according to either an existingconstraint
or an implicit default constraint, if available.<T> void
IMutableConstrainedMap.putPersistedString
(K key, IConstraint<T> constraint, String persisted) Mapkey
to the value obtained by parsingpersisted
, if allowed according toconstraint
and additional restrictions on this map such as a conflictingconstraint
being in effect for thiskey
.void
MutableConstrainedMap.putPersistedString
(K key, String persisted) <T> void
MutableConstrainedMap.putPersistedString
(K key, IConstraint<T> constraint, String persisted) boolean
boolean
Fundamentally, check thatvalue
satisfies this constraint and throw an exception otherwise.protected boolean
ComparableConstraint.validateRange
(T value)