Interface Condition

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 Condition
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Evaluates whether the condition has been met.
  • Method Details

    • evaluate

      boolean evaluate() throws Exception
      Evaluates whether the condition has been met.
      Returns:
      true when the condition is satisfied.
      Throws:
      Exception - When evaluation fails.