| Constructor and Description |
|---|
Problem(java.lang.String message,
Severity severity)
Create a new problem with the given message and severity
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Problem o)
Compare, such that most severe Problems will appear last, least first
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getMessage()
Get the localized, human-readable description of the problem
|
int |
hashCode() |
boolean |
isFatal()
Convenience method to determine if this problem is of Severity.FATAL
severity
|
boolean |
isWorseThan(Problem other)
Determine if this problem is more severe than another
|
Severity |
severity()
Get the severity of this problem.
|
java.lang.String |
toString() |
public Problem(java.lang.String message,
Severity severity)
message - A localized, human readable messageseverity - The severitypublic Severity severity()
public boolean isWorseThan(Problem other)
other - The other problempublic boolean isFatal()
public java.lang.String getMessage()
public int compareTo(Problem o)
compareTo in interface java.lang.Comparable<Problem>o - public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object