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 java.lang.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.(package private) class
TimestampKind
private static class
UnitLookup.LeafContentType<T>
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 java.util.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>
UnitLookup.LeafContentType. combine(IConstraint<?> other)
IConstraint<T>
WrappingPersister. combine(IConstraint<?> other)
static <U,T extends java.lang.Comparable<T>>
IConstraint<U>ComparableConstraint. constrain(IConstraint<U> constraint, java.lang.String persistedMin, java.lang.String persistedMax)
static <U,T extends java.lang.Comparable<T>>
IConstraint<U>ComparableConstraint. constrain(IConstraint<U> constraint, U min, U max)
private IConstraint<T>
ComparableConstraint. constrain(T otherMin, T otherMax)
private static <T extends java.lang.Comparable<T>>
IConstraint<T>ComparableConstraint. constrainComparable(IConstraint<T> constraint, T min, T 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>
UnitLookup.LeafContentType. combine(IConstraint<?> other)
IConstraint<T>
WrappingPersister. combine(IConstraint<?> other)
static <U,T extends java.lang.Comparable<T>>
IConstraint<U>ComparableConstraint. constrain(IConstraint<U> constraint, java.lang.String persistedMin, java.lang.String persistedMax)
static <U,T extends java.lang.Comparable<T>>
IConstraint<U>ComparableConstraint. constrain(IConstraint<U> constraint, U min, U max)
private static <T extends java.lang.Comparable<T>>
IConstraint<T>ComparableConstraint. constrainComparable(IConstraint<T> constraint, T min, T max)
private <T> java.lang.String
MutableConstrainedMap. getPersistableString(IConstraint<T> constraint, java.lang.Object value)
<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, java.lang.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, java.lang.String persisted)
private <T> void
MutableConstrainedMap. validate(IConstraint<T> constraint, java.lang.Object value)
Constructors in org.openjdk.jmc.common.unit with parameters of type IConstraint Constructor Description SimpleConstrainedMap(java.util.Map<K,IConstraint<?>> constraints, IConstraint<?> fallback)
SimpleConstrainedMap(java.util.Map<K,IConstraint<?>> constraints, IConstraint<?> fallback, java.util.Map<K,java.lang.Object> values)
SimpleConstrainedMap(IConstraint<?> fallback)
Constructor parameters in org.openjdk.jmc.common.unit with type arguments of type IConstraint Constructor Description SimpleConstrainedMap(java.util.Map<K,IConstraint<?>> constraints, IConstraint<?> fallback)
SimpleConstrainedMap(java.util.Map<K,IConstraint<?>> constraints, IConstraint<?> fallback, java.util.Map<K,java.lang.Object> values)
-