Record Class StatusSummary
java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.gherkin.progress.StatusSummary
- Record Components:
status- the status these scenarios were classified aslabel- the display label, e.g."Listed"blurb- a one-sentence explanation of whatstatusmeansscenarios- the scenarios classified asstatuscount-scenarios.size()percentage-countas a percentage of the total scenario count, formatted to one decimal place, e.g."33.3"
public record StatusSummary(ScenarioStatus status, String label, String blurb, List<ScenarioInfo> scenarios, int count, String percentage)
extends Record
The scenarios classified under one
ScenarioStatus, along with the display text and
summary figures used to render that status's heading, blurb, and summary table row.-
Constructor Summary
ConstructorsConstructorDescriptionStatusSummary(ScenarioStatus status, String label, String blurb, List<ScenarioInfo> scenarios, int count, String percentage) Creates an instance of aStatusSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionblurb()Returns the value of theblurbrecord component.intcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.Returns the value of thepercentagerecord component.Returns the value of thescenariosrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StatusSummary
public StatusSummary(ScenarioStatus status, String label, String blurb, List<ScenarioInfo> scenarios, int count, String percentage) Creates an instance of aStatusSummaryrecord class.- Parameters:
status- the value for thestatusrecord componentlabel- the value for thelabelrecord componentblurb- the value for theblurbrecord componentscenarios- the value for thescenariosrecord componentcount- the value for thecountrecord componentpercentage- the value for thepercentagerecord 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 '=='. -
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
blurb
Returns the value of theblurbrecord component.- Returns:
- the value of the
blurbrecord component
-
scenarios
Returns the value of thescenariosrecord component.- Returns:
- the value of the
scenariosrecord component
-
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
percentage
Returns the value of thepercentagerecord component.- Returns:
- the value of the
percentagerecord component
-