Record Class DuplicateScenarioTitles.ScenarioOccurrence
java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.gherkin.parser.DuplicateScenarioTitles.ScenarioOccurrence
- Record Components:
scenario- the parsed scenariofeatureFile- the.featurefile it was parsed from
- Enclosing class:
DuplicateScenarioTitles
public static record DuplicateScenarioTitles.ScenarioOccurrence(ScenarioInfo scenario, File featureFile)
extends Record
A single scenario as parsed from a particular feature file.
-
Constructor Summary
ConstructorsConstructorDescriptionScenarioOccurrence(ScenarioInfo scenario, File featureFile) Creates an instance of aScenarioOccurrencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefeatureFilerecord component.final inthashCode()Returns a hash code value for this object.scenario()Returns the value of thescenariorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScenarioOccurrence
Creates an instance of aScenarioOccurrencerecord class.- Parameters:
scenario- the value for thescenariorecord componentfeatureFile- the value for thefeatureFilerecord 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). -
scenario
Returns the value of thescenariorecord component.- Returns:
- the value of the
scenariorecord component
-
featureFile
Returns the value of thefeatureFilerecord component.- Returns:
- the value of the
featureFilerecord component
-