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 Type
    Method
    Description
    boolean
    isEQ(IMPLTYPE aOther)
    Check if this object is of the same level (= equal important) than the passed object.
    boolean
    isGE(IMPLTYPE aOther)
    Check if this object is of equal or higher level (= equally or more important) than the passed object.
    boolean
    isGT(IMPLTYPE aOther)
    Check if this object is of higher level (= more important) than the passed object.
    boolean
    isLE(IMPLTYPE aOther)
    Check if this object is of equal or lower level (= equally or less important) than the passed object.
    boolean
    isLT(IMPLTYPE aOther)
    Check if this object is of lower level (= less important) than the passed object.
    default boolean
    isNE(IMPLTYPE aOther)
    Check if this object is of a different level (= different importance) than the passed object.
  • Method Details

    • 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:
      true if 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:
      true if 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:
      true if 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:
      true if 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:
      true if this object is more important than the passed object!
    • isGE

      boolean isGE(@Nonnull IMPLTYPE aOther)
      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!