Interface IfPredicate
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An
IfPredicate is evaluated to resolve if an IfExpression or ElseIfExpression element is true
and hence the return value from the ifReturnValueSupplier must be returned-
Method Summary
-
Method Details
-
test
boolean test()Evaluate the if predicate- Returns:
- the result of the if predicate evaluation. If it returns true, then the given
IfExpressionorElseIfExpressionwill have the suppliedifReturnValueSuppliercalled and its returned value returned from theIfExpression
-