Record Class StringConcatRewriteOutcome.Conflict
java.lang.Object
java.lang.Record
org.ek9lang.compiler.repair.StringConcatRewriteOutcome.Conflict
- Enclosing class:
StringConcatRewriteOutcome
public static record StringConcatRewriteOutcome.Conflict(String kind, String reason, StringConcatRewriteOutcome.OffendingExpression offendingExpression, String suggestedRewrite)
extends Record
One refusal condition.
kind mirrors the spec card's
conflicts[].kind vocabulary.-
Constructor Summary
ConstructorsConstructorDescriptionConflict(String kind, String reason, StringConcatRewriteOutcome.OffendingExpression offendingExpression, String suggestedRewrite) Creates an instance of aConflictrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.Returns the value of theoffendingExpressionrecord component.reason()Returns the value of thereasonrecord component.Returns the value of thesuggestedRewriterecord component.toMap()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Conflict
public Conflict(String kind, String reason, StringConcatRewriteOutcome.OffendingExpression offendingExpression, String suggestedRewrite) Creates an instance of aConflictrecord class.- Parameters:
kind- the value for thekindrecord componentreason- the value for thereasonrecord componentoffendingExpression- the value for theoffendingExpressionrecord componentsuggestedRewrite- the value for thesuggestedRewriterecord component
-
-
Method Details
-
toMap
-
toString
-
hashCode
-
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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
offendingExpression
Returns the value of theoffendingExpressionrecord component.- Returns:
- the value of the
offendingExpressionrecord component
-
suggestedRewrite
Returns the value of thesuggestedRewriterecord component.- Returns:
- the value of the
suggestedRewriterecord component
-