Record Class CaptureControlServer.RankedCandidate
java.lang.Object
java.lang.Record
com.shaft.capture.control.CaptureControlServer.RankedCandidate
- Record Components:
strategy- locator strategy nameexpression- raw locator expressionscore- deterministicLocatorCandidate.score()snippet- copy-paste Java locator expression
- Enclosing class:
CaptureControlServer
-
Constructor Summary
ConstructorsConstructorDescriptionRankedCandidate(String strategy, String expression, int score, String snippet) Creates an instance of aRankedCandidaterecord 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
-
RankedCandidate
Creates an instance of aRankedCandidaterecord 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
-