Record Class CaptureGenerationReport.LocatorDecision
java.lang.Object
java.lang.Record
com.shaft.capture.generate.CaptureGenerationReport.LocatorDecision
- Record Components:
eventIds- related event IDslogicalElementId- logical targetstrategy- selected strategyexpression- sanitized expressionscore- deterministic scorescoreBreakdown- ordered score explanationalternatives- ranked alternatives
- Enclosing class:
CaptureGenerationReport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealternativesrecord component.final booleanIndicates whether some other object is "equal to" this one.eventIds()Returns the value of theeventIdsrecord component.Returns the value of theexpressionrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelogicalElementIdrecord component.intscore()Returns the value of thescorerecord component.Returns the value of thescoreBreakdownrecord component.strategy()Returns the value of thestrategyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LocatorDecision
public LocatorDecision(List<String> eventIds, String logicalElementId, String strategy, String expression, int score, List<String> scoreBreakdown, List<String> alternatives) Creates an instance of aLocatorDecisionrecord class.- Parameters:
eventIds- the value for theeventIdsrecord componentlogicalElementId- the value for thelogicalElementIdrecord componentstrategy- the value for thestrategyrecord componentexpression- the value for theexpressionrecord componentscore- the value for thescorerecord componentscoreBreakdown- the value for thescoreBreakdownrecord componentalternatives- the value for thealternativesrecord 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. -
eventIds
-
logicalElementId
Returns the value of thelogicalElementIdrecord component.- Returns:
- the value of the
logicalElementIdrecord component
-
strategy
-
expression
Returns the value of theexpressionrecord component.- Returns:
- the value of the
expressionrecord component
-
score
-
scoreBreakdown
Returns the value of thescoreBreakdownrecord component.- Returns:
- the value of the
scoreBreakdownrecord component
-
alternatives
Returns the value of thealternativesrecord component.- Returns:
- the value of the
alternativesrecord component
-