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 sameConstraintFunction
the number of values is always the same if this class is used withMethodBasedConstraint
. Easier implementable variants for Lambda expressions are available atBooleanFunction1
throughBooleanFunction6
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
check(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:
true
iff the values form a valid combination
-
-