Record Class CaptureService.McpPickLocatorResult
java.lang.Object
java.lang.Record
com.shaft.mcp.CaptureService.McpPickLocatorResult
- Record Components:
snippet- winning candidate's copy-paste Java locator expression, blank when no valid candidate was suppliedranked- every valid supplied candidate, ranked best-first
- Enclosing class:
CaptureService
public static record CaptureService.McpPickLocatorResult(String snippet, List<CaptureService.McpRankedLocatorCandidate> ranked)
extends Record
Pick-locator result.
-
Constructor Summary
ConstructorsConstructorDescriptionMcpPickLocatorResult(String snippet, List<CaptureService.McpRankedLocatorCandidate> ranked) Creates an immutable pick-locator result. -
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.ranked()Returns the value of therankedrecord component.snippet()Returns the value of thesnippetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
McpPickLocatorResult
Creates an immutable pick-locator result.
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
snippet
-
ranked
-