Package de.xam.featdoc.system
Record Class ScenarioStep
java.lang.Object
java.lang.Record
de.xam.featdoc.system.ScenarioStep
-
Constructor Summary
ConstructorsConstructorDescriptionScenarioStep(Scenario scenario, System sourceSystem, Message message, String commentOnMessage) Creates an instance of aScenarioSteprecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecommentOnMessagerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.scenario()Returns the value of thescenariorecord component.Returns the value of thesourceSystemrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScenarioStep
public ScenarioStep(Scenario scenario, System sourceSystem, Message message, String commentOnMessage) Creates an instance of aScenarioSteprecord class.- Parameters:
scenario- the value for thescenariorecord componentsourceSystem- the value for thesourceSystemrecord componentmessage- the value for themessagerecord componentcommentOnMessage- the value for thecommentOnMessagerecord 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
-
sourceSystem
Returns the value of thesourceSystemrecord component.- Returns:
- the value of the
sourceSystemrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
commentOnMessage
Returns the value of thecommentOnMessagerecord component.- Returns:
- the value of the
commentOnMessagerecord component
-