Package io.karatelabs.core
Record Class StepUtils.CallParts
java.lang.Object
java.lang.Record
io.karatelabs.core.StepUtils.CallParts
- Enclosing class:
StepUtils
The callable target and (optional) argument expression of a call step, e.g.
call read('x.feature') {...} splits into read('x.feature') and
{...}. arg is null when the step carries no argument.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarg()Returns the value of theargrecord component.callable()Returns the value of thecallablerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CallParts
Creates an instance of aCallPartsrecord class.- Parameters:
callable- the value for thecallablerecord componentarg- the value for theargrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
callable
Returns the value of thecallablerecord component.- Returns:
- the value of the
callablerecord component
-
arg
Returns the value of theargrecord component.- Returns:
- the value of the
argrecord component
-