Interface ConstraintFunction
-
- All Known Subinterfaces:
BooleanFunction1<A>,BooleanFunction2<A,B>,BooleanFunction3<A,B,C>,BooleanFunction4<A,B,C,D>,BooleanFunction5<A,B,C,D,E>,BooleanFunction6<A,B,C,D,E,F>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ConstraintFunction
Defines a function to constrain a given number of values. For the sameConstraintFunctionthe number of values is always the same if this class is used withMethodBasedConstraint. Easier implementable variants for Lambda expressions are available atBooleanFunction1throughBooleanFunction6.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheck(List<?> arguments)Checks whether the given values are a valid combination or one which should not appear.
-
-
-
Method Detail
-
check
boolean check(List<?> arguments)
Checks whether the given values are a valid combination or one which should not appear.- Parameters:
arguments- the values- Returns:
trueiff the values form a valid combination
-
-