Uses of Interface
org.openjdk.jmc.common.unit.IConstraint
Packages that use IConstraint
Package
Description
This package contains the data model for quantities and units.
-
Uses of IConstraint in org.openjdk.jmc.common.unit
Subinterfaces of IConstraint in org.openjdk.jmc.common.unitClasses in org.openjdk.jmc.common.unit that implement IConstraintModifier and TypeClassDescriptionfinal class
ComparableConstraint<T extends Comparable<T>>
Aconstraint
that wraps apersister
forComparable
values, and constrains the allowed values with minimum and maximum values.class
KindOfQuantity<U extends TypedUnit<U>>
class
The kind of a linear (scalar) physical quantity.class
Fields in org.openjdk.jmc.common.unit declared as IConstraintFields in org.openjdk.jmc.common.unit with type parameters of type IConstraintModifier and TypeFieldDescriptionprotected final Map<K,
IConstraint<?>> SimpleConstrainedMap.constraints
Methods in org.openjdk.jmc.common.unit that return IConstraintModifier and TypeMethodDescriptionIConstraint.combine
(IConstraint<?> other) Return a constraint that honors both this constraint andother
, if such a constraint would accept anything exceptnull
.KindOfQuantity.combine
(IConstraint<?> other) WrappingPersister.combine
(IConstraint<?> other) static <U,
T extends Comparable<T>>
IConstraint<U>ComparableConstraint.constrain
(IConstraint<U> constraint, String persistedMin, String persistedMax) static <U,
T extends Comparable<T>>
IConstraint<U>ComparableConstraint.constrain
(IConstraint<U> constraint, U min, U max) IConstraint<?>
IConstrainedMap.getConstraint
(K key) IOptionDescriptor.getConstraint()
abstract IConstraint<?>
MutableConstrainedMap.getConstraint
(K key) IConstraint<?>
SimpleConstrainedMap.getConstraint
(K key) protected IConstraint<?>
MutableConstrainedMap.getSuggestedConstraint
(K key) This method will only be called for keys for whichMutableConstrainedMap.getConstraint(Object)
currently returns null for.protected IConstraint<?>
SimpleConstrainedMap.getSuggestedConstraint
(K key) Methods in org.openjdk.jmc.common.unit with parameters of type IConstraintModifier and TypeMethodDescriptionprotected void
MutableConstrainedMap.addConstraint
(K key, IConstraint<?> constraint) protected void
SimpleConstrainedMap.addConstraint
(K key, IConstraint<?> constraint) ComparableConstraint.combine
(IConstraint<?> other) IConstraint.combine
(IConstraint<?> other) Return a constraint that honors both this constraint andother
, if such a constraint would accept anything exceptnull
.KindOfQuantity.combine
(IConstraint<?> other) WrappingPersister.combine
(IConstraint<?> other) static <U,
T extends Comparable<T>>
IConstraint<U>ComparableConstraint.constrain
(IConstraint<U> constraint, String persistedMin, String persistedMax) static <U,
T extends Comparable<T>>
IConstraint<U>ComparableConstraint.constrain
(IConstraint<U> constraint, U min, U max) <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
.<T> void
MutableConstrainedMap.put
(K key, IConstraint<T> constraint, T value) <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
.<T> void
MutableConstrainedMap.putPersistedString
(K key, IConstraint<T> constraint, String persisted) Constructors in org.openjdk.jmc.common.unit with parameters of type IConstraintModifierConstructorDescriptionSimpleConstrainedMap
(Map<K, IConstraint<?>> constraints, IConstraint<?> fallback) protected
SimpleConstrainedMap
(Map<K, IConstraint<?>> constraints, IConstraint<?> fallback, Map<K, Object> values) SimpleConstrainedMap
(IConstraint<?> fallback) Constructor parameters in org.openjdk.jmc.common.unit with type arguments of type IConstraintModifierConstructorDescriptionSimpleConstrainedMap
(Map<K, IConstraint<?>> constraints, IConstraint<?> fallback) protected
SimpleConstrainedMap
(Map<K, IConstraint<?>> constraints, IConstraint<?> fallback, Map<K, Object> values)