Record Class StatusSnippets
java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.gherkin.snippet.StatusSnippets
- Record Components:
features- the per-feature snippet files, in feature order; empty whenflatFile()is usedflatFile- the single flat snippet file for this status;nullwhenfeatures()is used
The snippet file(s) written for one
ScenarioStatus.
Exactly one of features() or flatFile() is populated: features when
the status has at least one scenario and scenarios are grouped by feature; flatFile
otherwise (grouping disabled, or the status has no scenarios at all).
-
Constructor Summary
ConstructorsConstructorDescriptionStatusSnippets(List<FeatureSnippet> features, File flatFile) Creates an instance of aStatusSnippetsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.features()Returns the value of thefeaturesrecord component.flatFile()Returns the value of theflatFilerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
features
Returns the value of thefeaturesrecord component.- Returns:
- the value of the
featuresrecord component
-
flatFile
Returns the value of theflatFilerecord component.- Returns:
- the value of the
flatFilerecord component
-