Package com.helger.base.state
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 TypeMethodDescriptiondefault @NonNull EContinueand(@NonNull IContinueIndicator aContinue) Logical AND of this continue indicator with another one.default booleanisBreak()booleandefault @NonNull EContinueor(@NonNull IContinueIndicator aContinue) Logical OR of this continue indicator with another one.
-
Method Details
-
isContinue
boolean isContinue()- Returns:
trueto continue andfalseto break.
-
isBreak
default boolean isBreak()- Returns:
trueto break andfalseto continue.
-
or
Logical OR of this continue indicator with another one.- Parameters:
aContinue- The other continue indicator. May not benull.- Returns:
EContinue.CONTINUEif either this or the other indicator indicates continue.
-
and
Logical AND of this continue indicator with another one.- Parameters:
aContinue- The other continue indicator. May not benull.- Returns:
EContinue.CONTINUEif both this and the other indicator indicate continue.
-