Package com.helger.commons.severity
Interface ISeverityComparable<IMPLTYPE extends ISeverityComparable<IMPLTYPE>>
-
- Type Parameters:
IMPLTYPE- The implementation type
- All Known Subinterfaces:
IError,IErrorLevel,IHasErrorLevelComparable<IMPLTYPE>
- All Known Implementing Classes:
EErrorLevel,ErrorLevel,LogMessage,SingleError
public interface ISeverityComparable<IMPLTYPE extends ISeverityComparable<IMPLTYPE>>Interface for comparable objects based on their severity.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanisEQ(IMPLTYPE aOther)Check if this object is of the same level (= equal important) than the passed object.booleanisGE(IMPLTYPE aOther)Check if this object is of equal or higher level (= equally or more important) than the passed object.booleanisGT(IMPLTYPE aOther)Check if this object is of higher level (= more important) than the passed object.booleanisLE(IMPLTYPE aOther)Check if this object is of equal or lower level (= equally or less important) than the passed object.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.
-
-
-
Method Detail
-
isEQ
boolean isEQ(@Nonnull IMPLTYPE aOther)
Check if this object is of the same level (= equal important) than the passed object.- 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)
Check if this object is of a different level (= different importance) than the passed object.- Parameters:
aOther- The object to compare to.- Returns:
trueif this object is not equally important than the passed object!- Since:
- 8.6.5
-
isLT
boolean isLT(@Nonnull IMPLTYPE aOther)
Check if this object is of lower level (= less important) than the passed object.- Parameters:
aOther- The object to compare to.- Returns:
trueif this object is less important than the passed object!
-
isLE
boolean isLE(@Nonnull IMPLTYPE aOther)
Check if this object is of equal or lower level (= equally or less important) than the passed object.- Parameters:
aOther- The object to compare to.- Returns:
trueif this object is equally or less important than the passed object!
-
isGT
boolean isGT(@Nonnull IMPLTYPE aOther)
Check if this object is of higher level (= more important) than the passed object.- Parameters:
aOther- The object to compare to.- Returns:
trueif this object is more important than the passed object!
-
-