Record Class SanityIssue
java.lang.Object
java.lang.Record
org.monarchinitiative.lirical.core.sanitize.SanityIssue
- Record Components:
level- severity of the issue.message- description of the issue for humans.solution- the proposed solution ornullif N/A.
An issue that was found in the analysis input.
- Author:
- Daniel Danis
-
Constructor Summary
ConstructorsConstructorDescriptionSanityIssue(SanityLevel level, String message, String solution) Creates an instance of aSanityIssuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static SanityIssuefinal inthashCode()Returns a hash code value for this object.level()Returns the value of thelevelrecord component.message()Returns the value of themessagerecord component.solution()Returns the value of thesolutionrecord component.final StringtoString()Returns a string representation of this record class.static SanityIssue
-
Constructor Details
-
Method Details
-
error
-
warning
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
level
Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
solution
Returns the value of thesolutionrecord component.- Returns:
- the value of the
solutionrecord component
-