@MustImplementEqualsAndHashcode public interface IErrorLevel extends IHasID<String>, ISuccessIndicator, IErrorIndicator, ISeverityComparable<IErrorLevel>
| Modifier and Type | Method and Description |
|---|---|
default int |
compareTo(IErrorLevel aErrorLevel) |
static IErrorLevel |
getMostSevere(IErrorLevel aLevel1,
IErrorLevel aLevel2) |
int |
getNumericLevel() |
default boolean |
isEQ(IErrorLevel aErrorLevel)
Check if this object is of the same level (= equal important) than the
passed object.
|
default boolean |
isError() |
default boolean |
isFailure() |
default boolean |
isGE(IErrorLevel aErrorLevel)
Check if this object is of equal or higher level (= equally or more
important) than the passed object.
|
default boolean |
isGT(IErrorLevel aErrorLevel)
Check if this object is of higher level (= more important) than the passed
object.
|
default boolean |
isHighest() |
default boolean |
isLE(IErrorLevel aErrorLevel)
Check if this object is of equal or lower level (= equally or less
important) than the passed object.
|
default boolean |
isLT(IErrorLevel aErrorLevel)
Check if this object is of lower level (= less important) than the passed
object.
|
default boolean |
isNE(IErrorLevel aErrorLevel)
Check if this object is of a different level (= different importance) than
the passed object.
|
default boolean |
isNoError() |
default boolean |
isSuccess() |
getComparatorID, getIDand, or@Nonnegative int getNumericLevel()
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.default int compareTo(@Nonnull IErrorLevel aErrorLevel)
default boolean isEQ(@Nonnull IErrorLevel aErrorLevel)
ISeverityComparableisEQ in interface ISeverityComparable<IErrorLevel>aErrorLevel - The object to compare to.true if this object is equally important than the
passed object!default boolean isNE(@Nonnull IErrorLevel aErrorLevel)
ISeverityComparableisNE in interface ISeverityComparable<IErrorLevel>aErrorLevel - The object to compare to.true if this object is not equally important than the
passed object!default boolean isLT(@Nonnull IErrorLevel aErrorLevel)
ISeverityComparableisLT in interface ISeverityComparable<IErrorLevel>aErrorLevel - The object to compare to.true if this object is less important than the passed
object!default boolean isLE(@Nonnull IErrorLevel aErrorLevel)
ISeverityComparableisLE in interface ISeverityComparable<IErrorLevel>aErrorLevel - The object to compare to.true if this object is equally or less important than
the passed object!default boolean isGT(@Nonnull IErrorLevel aErrorLevel)
ISeverityComparableisGT in interface ISeverityComparable<IErrorLevel>aErrorLevel - The object to compare to.true if this object is more important than the passed
object!default boolean isGE(@Nonnull IErrorLevel aErrorLevel)
ISeverityComparableisGE in interface ISeverityComparable<IErrorLevel>aErrorLevel - The object to compare to.true if this object is equally or more important than
the passed object!default boolean isHighest()
@Nullable static IErrorLevel getMostSevere(@Nullable IErrorLevel aLevel1, @Nullable IErrorLevel aLevel2)
Copyright © 2014–2019 Philip Helger. All rights reserved.