Package it.unive.lisa.outputs
Class JsonReport.JsonWarning
- java.lang.Object
-
- it.unive.lisa.outputs.JsonReport.JsonWarning
-
- All Implemented Interfaces:
java.lang.Comparable<JsonReport.JsonWarning>
- Enclosing class:
- JsonReport
public static class JsonReport.JsonWarning extends java.lang.Object implements java.lang.Comparable<JsonReport.JsonWarning>
A warning that is ready to dump into aJsonReport.
-
-
Constructor Summary
Constructors Constructor Description JsonWarning()Builds an empty warning with no message.JsonWarning(Warning warning)Builds the warning, cloning the information from the givenWarning.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(JsonReport.JsonWarning o)booleanequals(java.lang.Object obj)java.lang.StringgetMessage()Yields the message of this warning.inthashCode()voidsetMessage(java.lang.String message)Sets the message of this warning.java.lang.StringtoString()
-
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
Yields the message of this warning.- Returns:
- the message
-
setMessage
public void setMessage(java.lang.String message)
Sets the message of this warning.- Parameters:
message- the message
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
compareTo
public int compareTo(JsonReport.JsonWarning o)
- Specified by:
compareToin interfacejava.lang.Comparable<JsonReport.JsonWarning>
-
-