Package ai.narrativetrace.gradle
Record Class ClarityScenarioResult.Issue
java.lang.Object
java.lang.Record
ai.narrativetrace.gradle.ClarityScenarioResult.Issue
- Enclosing class:
- ClarityScenarioResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.element()Returns the value of theelementrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theimpactScorerecord component.intReturns the value of theoccurrencesrecord component.severity()Returns the value of theseverityrecord component.Returns the value of thesuggestionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Issue
public Issue(String category, String element, String suggestion, String severity, int occurrences, double impactScore) Creates an instance of aIssuerecord class.- Parameters:
category- the value for thecategoryrecord componentelement- the value for theelementrecord componentsuggestion- the value for thesuggestionrecord componentseverity- the value for theseverityrecord componentoccurrences- the value for theoccurrencesrecord componentimpactScore- the value for theimpactScorerecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
element
Returns the value of theelementrecord component.- Returns:
- the value of the
elementrecord component
-
suggestion
Returns the value of thesuggestionrecord component.- Returns:
- the value of the
suggestionrecord component
-
severity
Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-
occurrences
public int occurrences()Returns the value of theoccurrencesrecord component.- Returns:
- the value of the
occurrencesrecord component
-
impactScore
public double impactScore()Returns the value of theimpactScorerecord component.- Returns:
- the value of the
impactScorerecord component
-