@FunctionalInterface public interface IHasErrorLevel extends ISuccessIndicator, IErrorIndicator
| Modifier and Type | Method and Description |
|---|---|
IErrorLevel |
getErrorLevel() |
default boolean |
hasErrorLevel(IErrorLevel aErrorLevel)
Check if this object has the provided error level.
|
default boolean |
isError() |
default boolean |
isFailure() |
default boolean |
isNoError() |
default boolean |
isSuccess() |
and, or@Nonnull IErrorLevel getErrorLevel()
null.default boolean hasErrorLevel(@Nullable IErrorLevel aErrorLevel)
aErrorLevel - The error level to check. May be null.true if getErrorLevel() and the passed error
level are equal, false otherwise.default boolean isSuccess()
isSuccess in interface ISuccessIndicatortrue on success and false on failure.default boolean isFailure()
isFailure in interface ISuccessIndicatortrue on failure and false on success.default boolean isError()
isError in interface IErrorIndicatortrue if this level is at least
EErrorLevel.ERROR or worse.default boolean isNoError()
isNoError in interface IErrorIndicatortrue if this level is below
EErrorLevel.ERROR.Copyright © 2014–2022 Philip Helger. All rights reserved.