Package io.cucumber.cucumberexpressions
Record Class CucumberExpressionParser.Result
java.lang.Object
java.lang.Record
io.cucumber.cucumberexpressions.CucumberExpressionParser.Result
- Enclosing class:
CucumberExpressionParser
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionast()Returns the value of theastrecord component.intconsumed()Returns the value of theconsumedrecord 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.
-
Field Details
-
consumed
private final int consumedThe field for theconsumedrecord component. -
ast
The field for theastrecord component.
-
-
Constructor Details
-
Result
-
Result
Creates an instance of aResultrecord class.- Parameters:
consumed- the value for theconsumedrecord componentast- the value for theastrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
consumed
public int consumed()Returns the value of theconsumedrecord component.- Returns:
- the value of the
consumedrecord component
-
ast
Returns the value of theastrecord component.- Returns:
- the value of the
astrecord component
-