Interface IContinueIndicator

All Known Implementing Classes:
EContinue

public interface IContinueIndicator
Very simple interface for an object that has continue/break indication.
Author:
Philip Helger
  • Method Summary

    Modifier and Type
    Method
    Description
    default @NonNull EContinue
    and(@NonNull IContinueIndicator aContinue)
    Logical AND of this continue indicator with another one.
    default boolean
     
    boolean
     
    default @NonNull EContinue
    or(@NonNull IContinueIndicator aContinue)
    Logical OR of this continue indicator with another one.
  • Method Details

    • isContinue

      boolean isContinue()
      Returns:
      true to continue and false to break.
    • isBreak

      default boolean isBreak()
      Returns:
      true to break and false to continue.
    • or

      default @NonNull EContinue or(@NonNull IContinueIndicator aContinue)
      Logical OR of this continue indicator with another one.
      Parameters:
      aContinue - The other continue indicator. May not be null.
      Returns:
      EContinue.CONTINUE if either this or the other indicator indicates continue.
    • and

      default @NonNull EContinue and(@NonNull IContinueIndicator aContinue)
      Logical AND of this continue indicator with another one.
      Parameters:
      aContinue - The other continue indicator. May not be null.
      Returns:
      EContinue.CONTINUE if both this and the other indicator indicate continue.