Class ErrorLevel

java.lang.Object
com.helger.commons.error.level.ErrorLevel
All Implemented Interfaces:
IErrorLevel, IHasID<String>, ISeverityComparable<IErrorLevel>, IErrorIndicator, ISuccessIndicator

@Immutable public class ErrorLevel extends Object implements IErrorLevel
A standalone implementation of the IErrorLevel interface.
Author:
Philip Helger
  • Constructor Details

  • Method Details

    • getID

      @Nonnull @Nonempty public String getID()
      Description copied from interface: IHasID
      Get the unique ID of this object. If the type is String than the returned value must match an XML NMToken expression (so e.g. no ':' in the ID)!
      Specified by:
      getID in interface IHasID<String>
      Returns:
      The ID of this object. May not be null.
    • getNumericLevel

      @Nonnegative public int getNumericLevel()
      Specified by:
      getNumericLevel in interface IErrorLevel
      Returns:
      The numeric level of this error level. Must be ≥ 0. The higher the numeric level, the higher the priority of the error level. So e.g. ERROR has a higher/larger/greater numerical level than WARNING.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object