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 on
IErrorLevel.- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptiondefault intdefault booleanCheck if this object is of the same level (= equal important) than the passed object.default booleanCheck if this object is of equal or higher level (= equally or more important) than the passed object.default booleanCheck if this object is of higher level (= more important) than the passed object.default booleanCheck if this object is of equal or lower level (= equally or less important) than the passed object.default booleanCheck if this object is of lower level (= less important) than the passed object.default booleanCheck if this object is of a different level (= different importance) than the passed object.Methods inherited from interface com.helger.commons.traits.IGenericImplTrait
thisAsTMethods inherited from interface com.helger.commons.error.level.IHasErrorLevel
getErrorLevel, hasErrorLevel, isError, isFailure, isNoError, isSuccessMethods inherited from interface com.helger.commons.state.ISuccessIndicator
and, or
-
Method Details
-
compareTo
-
isEQ
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
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
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
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
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
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!
-