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.
@FunctionalInterface public interface IfPredicate
AnIfPredicateis evaluated to resolve if anIfExpressionorElseIfExpressionelement is true and hence the return value from theifReturnValueSuppliermust be returned
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleantest()Evaluate the if predicate
-
-
-
Method Detail
-
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
-
-