Package com.helger.base.state
Interface IInterruptIndicator
- All Known Implementing Classes:
EInterrupt
public interface IInterruptIndicator
Very simple interface for an object that has interrupted indication.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NonNull EInterruptand(@NonNull IInterruptIndicator aInterrupt) Logical AND of this interrupt indicator with another one.booleandefault booleandefault @NonNull EInterruptor(@NonNull IInterruptIndicator aInterrupt) Logical OR of this interrupt indicator with another one.
-
Method Details
-
isInterrupted
boolean isInterrupted()- Returns:
trueif interrupted andfalseif not.
-
isNotInterrupted
default boolean isNotInterrupted()- Returns:
trueif not interrupted andfalseif so.
-
or
Logical OR of this interrupt indicator with another one.- Parameters:
aInterrupt- The other interrupt indicator. May not benull.- Returns:
EInterrupt.INTERRUPTEDif either this or the other indicator is interrupted.
-
and
Logical AND of this interrupt indicator with another one.- Parameters:
aInterrupt- The other interrupt indicator. May not benull.- Returns:
EInterrupt.INTERRUPTEDif both this and the other indicator are interrupted.
-