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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.StringgetDescription()Optional description of the condition for logging purposes.booleanshouldBreak()Determines if a break should be triggered.
-
-
-
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.
-
-