Package com.jk.core.validation
Class Problem
java.lang.Object
com.jk.core.validation.Problem
- All Implemented Interfaces:
Comparable<Problem>
The Class Problem.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Problem
Instantiates a new problem.- Parameters:
message
- the messageseverity
- the severity
-
-
Method Details
-
compareTo
Compare to.- Specified by:
compareTo
in interfaceComparable<Problem>
- Parameters:
o
- the o- Returns:
- the int
-
equals
Equals. -
getMessage
Gets the message.- Returns:
- the message
-
hashCode
public int hashCode()Hash code. -
isFatal
public boolean isFatal()Checks if is fatal.- Returns:
- true, if is fatal
-
isWorseThan
Checks if is worse than.- Parameters:
other
- the other- Returns:
- true, if is worse than
-
severity
Severity.- Returns:
- the severity
-
toString
To string.
-