Class Severity
java.lang.Object
com.aquima.interactions.foundation.report.Severity
- All Implemented Interfaces:
Serializable
,Comparable<Severity>
This class defines the severities of errors that can be reported.
- Since:
- 5.1
- Author:
- O. Kerpershoek
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Severity
This static member defines the Deprecation warning severity.static final Severity
This static member defines the Error severity.static final Severity
This static member defines the Experimental severity.static final Severity
This static member defines the Fatal severity.static final Severity
This static member defines the Warning severity. -
Method Summary
-
Field Details
-
FATAL
This static member defines the Fatal severity. -
EXPERIMENTAL
This static member defines the Experimental severity. -
ERROR
This static member defines the Error severity. -
DEPRECATION
This static member defines the Deprecation warning 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
This method returns the name of the severity.- Returns:
- the name of the severity.
-
hashCode
public int hashCode() -
equals
-
toString
-
compareTo
Sorts on most severe type first.- Specified by:
compareTo
in interfaceComparable<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.
-