Interface BooleanFunction4<A,B,C,D>
-
- Type Parameters:
A
- type of the first parameterB
- type of the second parameterC
- type of the third parameterD
- type of the fourth 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 BooleanFunction4<A,B,C,D> extends ConstraintFunction
A helper function used to define constraints which involves four parameters.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
apply(A a, B b, C c, D d)
Checks whether the value combination give for the parameters is allowed.default boolean
check(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:ConstraintFunction
Checks whether the given values are a valid combination or one which should not appear.- Specified by:
check
in interfaceConstraintFunction
- Parameters:
arguments
- the values- Returns:
true
iff the values form a valid combination
-
apply
boolean apply(A a, B b, C c, D d)
Checks whether the value combination give for the parameters is allowed.- Parameters:
a
- the value for the first parameterb
- the value for the second parameterc
- the value for the third parameterd
- the value for the fourth parameters- Returns:
- whether the value combination is allowed
-
-