Record Class NaturalActionStep
java.lang.Object
java.lang.Record
com.shaft.gui.internal.natural.NaturalActionStep
- Record Components:
kind- action kindlocator- target locator when the action targets an elementdata- optional action data, such as typed text or target URLtrust- confidence score from 0.0 to 1.0description- safe human-readable explanation
public record NaturalActionStep(NaturalActionKind kind, org.openqa.selenium.By locator, Object data, double trust, String description)
extends Record
One validated operation in a natural-language action plan.
-
Constructor Summary
ConstructorsConstructorDescriptionNaturalActionStep(NaturalActionKind kind, org.openqa.selenium.By locator, Object data, double trust, String description) Creates a bounded immutable action step. -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.org.openqa.selenium.Bylocator()Returns the value of thelocatorrecord component.final StringtoString()Returns a string representation of this record class.doubletrust()Returns the value of thetrustrecord component.
-
Constructor Details
-
NaturalActionStep
public NaturalActionStep(NaturalActionKind kind, org.openqa.selenium.By locator, Object data, double trust, String description) Creates a bounded immutable action step.
-
-
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. -
kind
-
locator
-
data
-
trust
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-