java.lang.Object
com.aquima.interactions.foundation.report.Severity
All Implemented Interfaces:
Serializable, Comparable<Severity>

public final class Severity extends Object implements Serializable, Comparable<Severity>
This class defines the severities of errors that can be reported.
Since:
5.1
Author:
O. Kerpershoek
See Also:
  • Field Details

    • FATAL

      public static final Severity FATAL
      This static member defines the Fatal severity.
    • EXPERIMENTAL

      public static final Severity EXPERIMENTAL
      This static member defines the Experimental severity.
    • ERROR

      public static final Severity ERROR
      This static member defines the Error severity.
    • DEPRECATION

      public static final Severity DEPRECATION
      This static member defines the Deprecation warning severity.
    • WARNING

      public static final Severity WARNING
      This static member defines the Warning severity.
  • Method Details

    • getCode

      public int getCode()
      This method returns the code of the severity.
      Returns:
      the code of the severity.
    • getName

      public String getName()
      This method returns the name of the severity.
      Returns:
      the name of the severity.
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(Severity other)
      Sorts on most severe type first.
      Specified by:
      compareTo in interface Comparable<Severity>
      Parameters:
      other - the Severity which should be compared against.
      Returns:
      the comparison value, >0 meaning larger then obj, =0 equal to and <0 smaller then object.