Package com.helger.commons.error.level
Interface IHasErrorLevelComparable<IMPLTYPE extends IHasErrorLevelComparable<IMPLTYPE>>
-
- Type Parameters:
IMPLTYPE- Implementation type
- All Superinterfaces:
IErrorIndicator,IGenericImplTrait<IMPLTYPE>,IHasErrorLevel,ISeverityComparable<IMPLTYPE>,ISuccessIndicator
- All Known Subinterfaces:
IError
- All Known Implementing Classes:
LogMessage,SingleError
public interface IHasErrorLevelComparable<IMPLTYPE extends IHasErrorLevelComparable<IMPLTYPE>> extends IHasErrorLevel, ISeverityComparable<IMPLTYPE>, IGenericImplTrait<IMPLTYPE>
Base interface for objects that have a severity based onIErrorLevel.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default intcompareTo(IMPLTYPE aOther)default booleanisEQ(IMPLTYPE aOther)Check if this object is of the same level (= equal important) than the passed object.default booleanisGE(IMPLTYPE aOther)Check if this object is of equal or higher level (= equally or more important) than the passed object.default booleanisGT(IMPLTYPE aOther)Check if this object is of higher level (= more important) than the passed object.default booleanisLE(IMPLTYPE aOther)Check if this object is of equal or lower level (= equally or less important) than the passed object.default booleanisLT(IMPLTYPE aOther)Check if this object is of lower level (= less important) than the passed object.default booleanisNE(IMPLTYPE aOther)Check if this object is of a different level (= different importance) than the passed object.-
Methods inherited from interface com.helger.commons.traits.IGenericImplTrait
thisAsT
-
Methods inherited from interface com.helger.commons.error.level.IHasErrorLevel
getErrorLevel, hasErrorLevel, isError, isFailure, isNoError, isSuccess
-
Methods inherited from interface com.helger.commons.state.ISuccessIndicator
and, or
-
-
-
-
Method Detail
-
isEQ
default boolean isEQ(@Nonnull IMPLTYPE aOther)
Description copied from interface:ISeverityComparableCheck if this object is of the same level (= equal important) than the passed object.- Specified by:
isEQin interfaceISeverityComparable<IMPLTYPE extends IHasErrorLevelComparable<IMPLTYPE>>- Parameters:
aOther- The object to compare to.- Returns:
trueif this object is equally important than the passed object!
-
isNE
default boolean isNE(@Nonnull IMPLTYPE aOther)
Description copied from interface:ISeverityComparableCheck if this object is of a different level (= different importance) than the passed object.- Specified by:
isNEin interfaceISeverityComparable<IMPLTYPE extends IHasErrorLevelComparable<IMPLTYPE>>- Parameters:
aOther- The object to compare to.- Returns:
trueif this object is not equally important than the passed object!
-
isLT
default boolean isLT(@Nonnull IMPLTYPE aOther)
Description copied from interface:ISeverityComparableCheck if this object is of lower level (= less important) than the passed object.- Specified by:
isLTin interfaceISeverityComparable<IMPLTYPE extends IHasErrorLevelComparable<IMPLTYPE>>- Parameters:
aOther- The object to compare to.- Returns:
trueif this object is less important than the passed object!
-
isLE
default boolean isLE(@Nonnull IMPLTYPE aOther)
Description copied from interface:ISeverityComparableCheck if this object is of equal or lower level (= equally or less important) than the passed object.- Specified by:
isLEin interfaceISeverityComparable<IMPLTYPE extends IHasErrorLevelComparable<IMPLTYPE>>- Parameters:
aOther- The object to compare to.- Returns:
trueif this object is equally or less important than the passed object!
-
isGT
default boolean isGT(@Nonnull IMPLTYPE aOther)
Description copied from interface:ISeverityComparableCheck if this object is of higher level (= more important) than the passed object.- Specified by:
isGTin interfaceISeverityComparable<IMPLTYPE extends IHasErrorLevelComparable<IMPLTYPE>>- Parameters:
aOther- The object to compare to.- Returns:
trueif this object is more important than the passed object!
-
isGE
default boolean isGE(@Nonnull IMPLTYPE aOther)
Description copied from interface:ISeverityComparableCheck if this object is of equal or higher level (= equally or more important) than the passed object.- Specified by:
isGEin interfaceISeverityComparable<IMPLTYPE extends IHasErrorLevelComparable<IMPLTYPE>>- Parameters:
aOther- The object to compare to.- Returns:
trueif this object is equally or more important than the passed object!
-
-