Record Class HealingCandidate
java.lang.Object
java.lang.Record
com.shaft.heal.model.HealingCandidate
- Record Components:
candidateId- stable attempt-local candidate identifierproposedLocator- proposed replacement locatorfingerprint- candidate fingerprintscore- separate ranking scoresevidence- matched evidence descriptionsunique- whether the proposed locator is uniquevisible- whether the element is displayedinteractable- whether the element is displayed and enabledcontextMatched- whether frame and shadow context matched
public record HealingCandidate(String candidateId, String proposedLocator, LocatorFingerprint fingerprint, HealingScore score, List<String> evidence, boolean unique, boolean visible, boolean interactable, boolean contextMatched)
extends Record
Explainable candidate derived from deterministic page evidence.
-
Constructor Summary
ConstructorsConstructorDescriptionHealingCandidate(String candidateId, String proposedLocator, LocatorFingerprint fingerprint, HealingScore score, List<String> evidence, boolean unique, boolean visible, boolean interactable, boolean contextMatched) Creates an immutable candidate. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecandidateIdrecord component.booleanReturns the value of thecontextMatchedrecord component.final booleanIndicates whether some other object is "equal to" this one.evidence()Returns the value of theevidencerecord component.Returns the value of thefingerprintrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theinteractablerecord component.Returns the value of theproposedLocatorrecord component.score()Returns the value of thescorerecord component.final StringtoString()Returns a string representation of this record class.booleanunique()Returns the value of theuniquerecord component.booleanvisible()Returns the value of thevisiblerecord component.
-
Constructor Details
-
HealingCandidate
public HealingCandidate(String candidateId, String proposedLocator, LocatorFingerprint fingerprint, HealingScore score, List<String> evidence, boolean unique, boolean visible, boolean interactable, boolean contextMatched) Creates an immutable candidate.
-
-
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. -
candidateId
Returns the value of thecandidateIdrecord component.- Returns:
- the value of the
candidateIdrecord component
-
proposedLocator
Returns the value of theproposedLocatorrecord component.- Returns:
- the value of the
proposedLocatorrecord component
-
fingerprint
Returns the value of thefingerprintrecord component.- Returns:
- the value of the
fingerprintrecord component
-
score
-
evidence
-
unique
-
visible
-
interactable
public boolean interactable()Returns the value of theinteractablerecord component.- Returns:
- the value of the
interactablerecord component
-
contextMatched
public boolean contextMatched()Returns the value of thecontextMatchedrecord component.- Returns:
- the value of the
contextMatchedrecord component
-