Uses of Interface
org.openjdk.jmc.common.unit.IConstraint
-
Packages that use IConstraint Package Description org.openjdk.jmc.common.unit 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.unit Modifier and Type Interface Description interface
IPersister<T>
Classes in org.openjdk.jmc.common.unit that implement IConstraint Modifier and Type Class Description 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
LinearKindOfQuantity
The kind of a linear (scalar) physical quantity.class
WrappingPersister<T>
Fields in org.openjdk.jmc.common.unit declared as IConstraint Modifier and Type Field Description protected IConstraint<?>
SimpleConstrainedMap. fallback
Fields in org.openjdk.jmc.common.unit with type parameters of type IConstraint Modifier and Type Field Description protected Map<K,IConstraint<?>>
SimpleConstrainedMap. constraints
Methods in org.openjdk.jmc.common.unit that return IConstraint Modifier and Type Method Description IConstraint<T>
IConstraint. combine(IConstraint<?> other)
Return a constraint that honors both this constraint andother
, if such a constraint would accept anything exceptnull
.IConstraint<IQuantity>
KindOfQuantity. combine(IConstraint<?> other)
IConstraint<T>
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)
IConstraint<T>
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 IConstraint Modifier and Type Method Description protected void
MutableConstrainedMap. addConstraint(K key, IConstraint<?> constraint)
protected void
SimpleConstrainedMap. addConstraint(K key, IConstraint<?> constraint)
ComparableConstraint<T>
ComparableConstraint. combine(IConstraint<?> other)
IConstraint<T>
IConstraint. combine(IConstraint<?> other)
Return a constraint that honors both this constraint andother
, if such a constraint would accept anything exceptnull
.IConstraint<IQuantity>
KindOfQuantity. combine(IConstraint<?> other)
IConstraint<T>
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 IConstraint Constructor Description SimpleConstrainedMap(Map<K,IConstraint<?>> constraints, IConstraint<?> fallback)
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 IConstraint Constructor Description SimpleConstrainedMap(Map<K,IConstraint<?>> constraints, IConstraint<?> fallback)
SimpleConstrainedMap(Map<K,IConstraint<?>> constraints, IConstraint<?> fallback, Map<K,Object> values)
-