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
Modifier and TypeMethodDescriptionboolean
Check if this object is of the same level (= equal important) than the passed object.boolean
Check if this object is of equal or higher level (= equally or more important) than the passed object.boolean
Check if this object is of higher level (= more important) than the passed object.boolean
Check if this object is of equal or lower level (= equally or less important) than the passed object.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.
-
Method Details
-
isEQ
Check if this object is of the same level (= equal important) than the passed object.- Parameters:
aOther
- The object to compare to.- Returns:
true
if this object is equally important than the passed object!
-
isNE
Check if this object is of a different level (= different importance) than the passed object.- Parameters:
aOther
- The object to compare to.- Returns:
true
if this object is not equally important than the passed object!- Since:
- 8.6.5
-
isLT
Check if this object is of lower level (= less important) than the passed object.- Parameters:
aOther
- The object to compare to.- Returns:
true
if this object is less important than the passed object!
-
isLE
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:
true
if this object is equally or less important than the passed object!
-
isGT
Check if this object is of higher level (= more important) than the passed object.- Parameters:
aOther
- The object to compare to.- Returns:
true
if this object is more important than the passed object!
-
isGE
Check if this object is of equal or higher level (= equally or more important) than the passed object.- Parameters:
aOther
- The object to compare to.- Returns:
true
if this object is equally or more important than the passed object!
-