Package dev.omnist.algebra
Record Class LintFinding
java.lang.Object
java.lang.Record
dev.omnist.algebra.LintFinding
- All Implemented Interfaces:
Comparable<LintFinding>
public record LintFinding(String code, String severity, String location, String message)
extends Record
implements Comparable<LintFinding>
One structural diagnostic returned by SchemaAlgebra.lint(S) (ยง6.11).
-
Constructor Summary
ConstructorsConstructorDescriptionLintFinding(String code, String severity, String location, String message) Creates an instance of aLintFindingrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.intfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.message()Returns the value of themessagerecord component.severity()Returns the value of theseverityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LintFinding
Creates an instance of aLintFindingrecord class.- Parameters:
code- the value for thecoderecord componentseverity- the value for theseverityrecord componentlocation- the value for thelocationrecord componentmessage- the value for themessagerecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<LintFinding>
-
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). -
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
severity
Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-