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 int
default boolean
Check if this object is of the same level (= equal important) than the passed object.default boolean
Check if this object is of equal or higher level (= equally or more important) than the passed object.default boolean
Check if this object is of higher level (= more important) than the passed object.default boolean
Check if this object is of equal or lower level (= equally or less important) than the passed object.default boolean
Check if this object is of lower level (= less important) than the passed object.default boolean
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 Details
-
compareTo
-
isEQ
Description copied from interface:ISeverityComparable
Check if this object is of the same level (= equal important) than the passed object.- Specified by:
isEQ
in interfaceISeverityComparable<IMPLTYPE extends IHasErrorLevelComparable<IMPLTYPE>>
- Parameters:
aOther
- The object to compare to.- Returns:
true
if this object is equally important than the passed object!
-
isNE
Description copied from interface:ISeverityComparable
Check if this object is of a different level (= different importance) than the passed object.- Specified by:
isNE
in interfaceISeverityComparable<IMPLTYPE extends IHasErrorLevelComparable<IMPLTYPE>>
- Parameters:
aOther
- The object to compare to.- Returns:
true
if this object is not equally important than the passed object!
-
isLT
Description copied from interface:ISeverityComparable
Check if this object is of lower level (= less important) than the passed object.- Specified by:
isLT
in interfaceISeverityComparable<IMPLTYPE extends IHasErrorLevelComparable<IMPLTYPE>>
- Parameters:
aOther
- The object to compare to.- Returns:
true
if this object is less important than the passed object!
-
isLE
Description copied from interface:ISeverityComparable
Check if this object is of equal or lower level (= equally or less important) than the passed object.- Specified by:
isLE
in interfaceISeverityComparable<IMPLTYPE extends IHasErrorLevelComparable<IMPLTYPE>>
- Parameters:
aOther
- The object to compare to.- Returns:
true
if this object is equally or less important than the passed object!
-
isGT
Description copied from interface:ISeverityComparable
Check if this object is of higher level (= more important) than the passed object.- Specified by:
isGT
in interfaceISeverityComparable<IMPLTYPE extends IHasErrorLevelComparable<IMPLTYPE>>
- Parameters:
aOther
- The object to compare to.- Returns:
true
if this object is more important than the passed object!
-
isGE
Description copied from interface:ISeverityComparable
Check if this object is of equal or higher level (= equally or more important) than the passed object.- Specified by:
isGE
in interfaceISeverityComparable<IMPLTYPE extends IHasErrorLevelComparable<IMPLTYPE>>
- Parameters:
aOther
- The object to compare to.- Returns:
true
if this object is equally or more important than the passed object!
-