Record Class CaptureService.McpRankedLocatorCandidate
java.lang.Object
java.lang.Record
com.shaft.mcp.CaptureService.McpRankedLocatorCandidate
- Record Components:
strategy- locator strategy nameexpression- raw locator expressionscore- deterministic scoresnippet- copy-paste Java locator expression
- Enclosing class:
CaptureService
-
Constructor Summary
ConstructorsConstructorDescriptionMcpRankedLocatorCandidate(String strategy, String expression, int score, String snippet) Creates an instance of aMcpRankedLocatorCandidaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpressionrecord component.final inthashCode()Returns a hash code value for this object.intscore()Returns the value of thescorerecord component.snippet()Returns the value of thesnippetrecord component.strategy()Returns the value of thestrategyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
McpRankedLocatorCandidate
Creates an instance of aMcpRankedLocatorCandidaterecord class.- Parameters:
strategy- the value for thestrategyrecord componentexpression- the value for theexpressionrecord componentscore- the value for thescorerecord componentsnippet- the value for thesnippetrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
strategy
-
expression
Returns the value of theexpressionrecord component.- Returns:
- the value of the
expressionrecord component
-
score
-
snippet
-