Record Class FixSuggestion
java.lang.Object
java.lang.Record
io.jenkins.plugins.explain_error.autofix.FixSuggestion
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionFixSuggestion(boolean fixable, String explanation, String confidence, String fixType, List<FixSuggestion.FileChange> changes) Creates an instance of aFixSuggestionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchanges()Returns the value of thechangesrecord component.Returns the value of theconfidencerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexplanationrecord component.booleanfixable()Returns the value of thefixablerecord component.fixType()Returns the value of thefixTyperecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FixSuggestion
public FixSuggestion(boolean fixable, String explanation, String confidence, String fixType, List<FixSuggestion.FileChange> changes) Creates an instance of aFixSuggestionrecord class.- Parameters:
fixable- the value for thefixablerecord componentexplanation- the value for theexplanationrecord componentconfidence- the value for theconfidencerecord componentfixType- the value for thefixTyperecord componentchanges- the value for thechangesrecord 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 '=='. -
fixable
public boolean fixable()Returns the value of thefixablerecord component.- Returns:
- the value of the
fixablerecord component
-
explanation
Returns the value of theexplanationrecord component.- Returns:
- the value of the
explanationrecord component
-
confidence
Returns the value of theconfidencerecord component.- Returns:
- the value of the
confidencerecord component
-
fixType
Returns the value of thefixTyperecord component.- Returns:
- the value of the
fixTyperecord component
-
changes
Returns the value of thechangesrecord component.- Returns:
- the value of the
changesrecord component
-