Package com.helger.commons.state
Interface ISuccessIndicator
-
- All Known Subinterfaces:
IError,IErrorLevel,IHasErrorLevel,IHasErrorLevelComparable<IMPLTYPE>
- All Known Implementing Classes:
EErrorLevel,EFileIOErrorCode,ErrorLevel,ESuccess,FileIOError,LoggingExceptionCallback,LogMessage,SingleError,SuccessWithValue
public interface ISuccessIndicatorVery simple interface for an object that has success/failure indication.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ESuccessand(ISuccessIndicator aSuccess)default booleanisFailure()booleanisSuccess()default ESuccessor(ISuccessIndicator aSuccess)
-
-
-
Method Detail
-
isSuccess
boolean isSuccess()
- Returns:
trueon success andfalseon failure.
-
isFailure
default boolean isFailure()
- Returns:
trueon failure andfalseon success.
-
or
@Nonnull default ESuccess or(@Nonnull ISuccessIndicator aSuccess)
-
and
@Nonnull default ESuccess and(@Nonnull ISuccessIndicator aSuccess)
-
-