Package org.egothor.methodatlas.ai
Record Class PromptBuilder.TargetMethod
java.lang.Object
java.lang.Record
org.egothor.methodatlas.ai.PromptBuilder.TargetMethod
- Record Components:
methodName- name of the JUnit test methodbeginLine- first source line of the method, ornullif unknownendLine- last source line of the method, ornullif unknown
- Enclosing class:
PromptBuilder
public static record PromptBuilder.TargetMethod(String methodName, Integer beginLine, Integer endLine)
extends Record
Deterministically extracted test method descriptor supplied to the prompt.
-
Constructor Summary
ConstructorsConstructorDescriptionTargetMethod(String methodName, Integer beginLine, Integer endLine) Creates an instance of aTargetMethodrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebeginLinerecord component.endLine()Returns the value of theendLinerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themethodNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TargetMethod
Creates an instance of aTargetMethodrecord class.- Parameters:
methodName- the value for themethodNamerecord componentbeginLine- the value for thebeginLinerecord componentendLine- the value for theendLinerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
methodName
Returns the value of themethodNamerecord component.- Returns:
- the value of the
methodNamerecord component
-
beginLine
Returns the value of thebeginLinerecord component.- Returns:
- the value of the
beginLinerecord component
-
endLine
Returns the value of theendLinerecord component.- Returns:
- the value of the
endLinerecord component
-