A - the type of aggregate this constraint checksT - the type of elements <A> holdspublic static class ComponentConstraintsBuilder.ComponentConstraint<A,T> extends ValuedConstraint<java.util.List<Constraint<? super T>>,A>
| Constructor and Description |
|---|
ComponentConstraint(java.util.List<Constraint<? super T>> constraints,
java.lang.Class<A> type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
test(A value)
Tests a value against this
ConfigValue. |
getValuegetTypepublic ComponentConstraint(java.util.List<Constraint<? super T>> constraints, java.lang.Class<A> type)
public boolean test(A value)
ConstraintConfigValue.test in class Constraint<A>value - the valuetrue if value satisfies the constraint