Record Class ReinterpretedOutlines.Outline
java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.gherkin.progress.ReinterpretedOutlines.Outline
- Record Components:
title- the outline's own title, unsubstituted, e.g."Scenario Outline: User logs in as <username>"- the title its now superseded history record is keyed onfeatureTitle- the name of theFeaturethe outline lives underscenarioCount- how many scenarios the outline is now reported as - one perExamplesrow; always at least one
- Enclosing class:
ReinterpretedOutlines
public static record ReinterpretedOutlines.Outline(String title, String featureTitle, int scenarioCount)
extends Record
A single
Scenario Outline that this run has started reporting one scenario per
Examples row.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefeatureTitlerecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thescenarioCountrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Outline
Creates an instance of aOutlinerecord class.- Parameters:
title- the value for thetitlerecord componentfeatureTitle- the value for thefeatureTitlerecord componentscenarioCount- the value for thescenarioCountrecord 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 '=='. -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
featureTitle
Returns the value of thefeatureTitlerecord component.- Returns:
- the value of the
featureTitlerecord component
-
scenarioCount
public int scenarioCount()Returns the value of thescenarioCountrecord component.- Returns:
- the value of the
scenarioCountrecord component
-