Record Class CaptureControlFiles.LastPick
java.lang.Object
java.lang.Record
com.shaft.capture.control.CaptureControlFiles.LastPick
- Record Components:
snippet- winning candidate's copy-paste Java locator expressioncandidates- every supplied candidate, ranked best-firstcapturedAtMillis- epoch millis when the pick was captured
- Enclosing class:
CaptureControlFiles
public static record CaptureControlFiles.LastPick(String snippet, List<CaptureControlServer.RankedCandidate> candidates, long capturedAtMillis)
extends Record
The most recent
/locator/pick result, persisted so a later caller with no candidates
of its own can recover the user's last recorder pick. capturedAtMillis is carried for
future staleness checks; no consumer currently enforces freshness (v1 non-goal).-
Constructor Summary
ConstructorsConstructorDescriptionLastPick(String snippet, List<CaptureControlServer.RankedCandidate> candidates, long capturedAtMillis) Creates an immutable last-pick record. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecandidatesrecord component.longReturns the value of thecapturedAtMillisrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.snippet()Returns the value of thesnippetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LastPick
public LastPick(String snippet, List<CaptureControlServer.RankedCandidate> candidates, long capturedAtMillis) Creates an immutable last-pick record.
-
-
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. -
snippet
-
candidates
Returns the value of thecandidatesrecord component.- Returns:
- the value of the
candidatesrecord component
-
capturedAtMillis
public long capturedAtMillis()Returns the value of thecapturedAtMillisrecord component.- Returns:
- the value of the
capturedAtMillisrecord component
-