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
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

    Modifier and Type
    Method
    Description
    boolean
    Evaluate the if predicate
  • Method Details

    • test

      boolean test()
      Evaluate the if predicate
      Returns:
      the result of the if predicate evaluation. If it returns true, then the given IfExpression or ElseIfExpression will have the supplied ifReturnValueSupplier called and its returned value returned from the IfExpression