Interface BreakCondition

  • 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 BreakCondition
    • Method Detail

      • shouldBreak

        boolean shouldBreak()
        Determines if a break should be triggered.
        Returns:
        true if the condition for taking a break is met
      • getDescription

        default java.lang.String getDescription()
        Optional description of the condition for logging purposes.
        Returns:
        The custom description for the reason why the break was taken. This shows up in the logs.