Record Class LocatorPolicy.LocatorPlan
java.lang.Object
java.lang.Record
com.shaft.capture.generate.LocatorPolicy.LocatorPlan
- Record Components:
tier- the tier that admitted the candidatesource- the Java source text to renderruntimeLocator- the locator the rendered source resolves to at replay
- Enclosing class:
LocatorPolicy
public static record LocatorPolicy.LocatorPlan(LocatorPolicy.Tier tier, String source, org.openqa.selenium.By runtimeLocator)
extends Record
How one candidate is emitted.
-
Constructor Summary
ConstructorsConstructorDescriptionLocatorPlan(LocatorPolicy.Tier tier, String source, org.openqa.selenium.By runtimeLocator) Creates an instance of aLocatorPlanrecord 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.org.openqa.selenium.ByReturns the value of theruntimeLocatorrecord component.source()Returns the value of thesourcerecord component.tier()Returns the value of thetierrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LocatorPlan
Creates an instance of aLocatorPlanrecord class.- Parameters:
tier- the value for thetierrecord componentsource- the value for thesourcerecord componentruntimeLocator- the value for theruntimeLocatorrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
tier
-
source
-
runtimeLocator
public org.openqa.selenium.By runtimeLocator()Returns the value of theruntimeLocatorrecord component.- Returns:
- the value of the
runtimeLocatorrecord component
-