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 classstatic classMethods 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 QuantityConversionExceptionQuantityConversionException.conflictingConstraints(Object value, String key) static QuantityConversionExceptionstatic <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 QuantityConversionExceptionQuantityConversionException.unknownUnit(String badString, IQuantity prototype) static <T extends Comparable<T>>
QuantityConversionExceptionQuantityConversionException.unknownUnit(String badString, T prototype, IPersister<T> persister) static QuantityConversionExceptionQuantityConversionException.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.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].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 isequalto the givenvalue.voidMapkeytovalue, if allowed according to either an existingconstraintor an implicit default constraint, if available.<T> voidIMutableConstrainedMap.put(K key, IConstraint<T> constraint, T value) Mapkeytovalue, if allowed according toconstraintand additional restrictions on this map such as a conflictingconstraintbeing in effect for thiskey.void<T> voidMutableConstrainedMap.put(K key, IConstraint<T> constraint, T value) voidIMutableConstrainedMap.putPersistedString(K key, String persisted) Mapkeyto the value obtained by parsingpersisted, if allowed according to either an existingconstraintor an implicit default constraint, if available.<T> voidIMutableConstrainedMap.putPersistedString(K key, IConstraint<T> constraint, String persisted) Mapkeyto the value obtained by parsingpersisted, if allowed according toconstraintand additional restrictions on this map such as a conflictingconstraintbeing in effect for thiskey.voidMutableConstrainedMap.putPersistedString(K key, String persisted) <T> voidMutableConstrainedMap.putPersistedString(K key, IConstraint<T> constraint, String persisted) booleanbooleanFundamentally, check thatvaluesatisfies this constraint and throw an exception otherwise.protected booleanComparableConstraint.validateRange(T value)