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 ornull
if N/A.
An issue that was found in the analysis input.
- Author:
- Daniel Danis
-
Constructor Summary
ConstructorDescriptionSanityIssue
(SanityLevel level, String message, String solution) Creates an instance of aSanityIssue
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.static SanityIssue
final int
hashCode()
Returns a hash code value for this object.level()
Returns the value of thelevel
record component.message()
Returns the value of themessage
record component.solution()
Returns the value of thesolution
record component.final String
toString()
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 thelevel
record component.- Returns:
- the value of the
level
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-
solution
Returns the value of thesolution
record component.- Returns:
- the value of the
solution
record component
-