Record Class CaptureControlServer.PickLocatorResponse
java.lang.Object
java.lang.Record
com.shaft.capture.control.CaptureControlServer.PickLocatorResponse
- Record Components:
snippet- winning candidate's copy-paste Java locator expressionranked- every supplied candidate, ranked best-first
- Enclosing class:
CaptureControlServer
public static record CaptureControlServer.PickLocatorResponse(String snippet, List<CaptureControlServer.RankedCandidate> ranked)
extends Record
Pick-locator result: the best candidate's snippet plus every candidate ranked best-first.
-
Constructor Summary
ConstructorsConstructorDescriptionPickLocatorResponse(String snippet, List<CaptureControlServer.RankedCandidate> ranked) Creates an instance of aPickLocatorResponserecord 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.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
-
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
-