Interface IInterruptIndicator

All Known Implementing Classes:
EInterrupt

public interface IInterruptIndicator
Very simple interface for an object that has interrupted indication.
Author:
Philip Helger
  • Method Details

    • isInterrupted

      boolean isInterrupted()
      Returns:
      true if interrupted and false if not.
    • isNotInterrupted

      default boolean isNotInterrupted()
      Returns:
      true if not interrupted and false if so.
    • or

      default @NonNull EInterrupt or(@NonNull IInterruptIndicator aInterrupt)
      Logical OR of this interrupt indicator with another one.
      Parameters:
      aInterrupt - The other interrupt indicator. May not be null.
      Returns:
      EInterrupt.INTERRUPTED if either this or the other indicator is interrupted.
    • and

      default @NonNull EInterrupt and(@NonNull IInterruptIndicator aInterrupt)
      Logical AND of this interrupt indicator with another one.
      Parameters:
      aInterrupt - The other interrupt indicator. May not be null.
      Returns:
      EInterrupt.INTERRUPTED if both this and the other indicator are interrupted.