Package io.codemodder.plugins.llm
Record Class NoActionLLMRemediationOutcome
java.lang.Object
java.lang.Record
io.codemodder.plugins.llm.NoActionLLMRemediationOutcome
- All Implemented Interfaces:
LLMRemediationOutcome
public record NoActionLLMRemediationOutcome(String key, String description)
extends Record
implements LLMRemediationOutcome
Models the parameters for a remediation analysis that results in no code changes.
-
Constructor Summary
ConstructorsConstructorDescriptionNoActionLLMRemediationOutcome
(String key, String description) Creates an instance of aNoActionLLMRemediationOutcome
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.fix()
A description of the fix for cases that match this description.final int
hashCode()
Returns a hash code value for this object.key()
Returns the value of thekey
record component.boolean
Whether this outcome should lead to a code change.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
NoActionLLMRemediationOutcome
Creates an instance of aNoActionLLMRemediationOutcome
record class.- Parameters:
key
- the value for thekey
record componentdescription
- the value for thedescription
record component
-
-
Method Details
-
fix
Description copied from interface:LLMRemediationOutcome
A description of the fix for cases that match this description.- Specified by:
fix
in interfaceLLMRemediationOutcome
-
shouldApplyCodeChanges
public boolean shouldApplyCodeChanges()Description copied from interface:LLMRemediationOutcome
Whether this outcome should lead to a code change.- Specified by:
shouldApplyCodeChanges
in interfaceLLMRemediationOutcome
-
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)
. -
key
Returns the value of thekey
record component.- Specified by:
key
in interfaceLLMRemediationOutcome
- Returns:
- the value of the
key
record component
-
description
Returns the value of thedescription
record component.- Specified by:
description
in interfaceLLMRemediationOutcome
- Returns:
- the value of the
description
record component
-