Interface BooleanFunction2<A,B>
-
- Type Parameters:
A- type of the first parameterB- type of the second parameter
- All Superinterfaces:
ConstraintFunction
- 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 BooleanFunction2<A,B> extends ConstraintFunction
A helper function used to define constraints which involves two parameters.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanapply(A a, B b)Checks whether the value combination give for the parameters is allowed.default booleancheck(List<?> arguments)Checks whether the given values are a valid combination or one which should not appear.
-
-
-
Method Detail
-
check
default boolean check(List<?> arguments)
Description copied from interface:ConstraintFunctionChecks whether the given values are a valid combination or one which should not appear.- Specified by:
checkin interfaceConstraintFunction- Parameters:
arguments- the values- Returns:
trueiff the values form a valid combination
-
-