Package de.xam.featdoc.mermaid.sequence
Record Class SequenceStep
java.lang.Object
java.lang.Record
de.xam.featdoc.mermaid.sequence.SequenceStep
- Record Components:
from-arrow-lifetimeEvent-to-message-comment- to be rendered in the source code of the diagram as comment
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSequenceStep(String from, Arrow arrow, SequenceStep.LifetimeEvent lifetimeEvent, String to, String message, String comment) Creates an instance of aSequenceSteprecord class. -
Method Summary
Modifier and TypeMethodDescriptionarrow()Returns the value of thearrowrecord component.comment()Returns the value of thecommentrecord component.final booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelifetimeEventrecord component.mermaid()message()Returns the value of themessagerecord component.to()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SequenceStep
public SequenceStep(String from, Arrow arrow, SequenceStep.LifetimeEvent lifetimeEvent, String to, String message, String comment) Creates an instance of aSequenceSteprecord class.- Parameters:
from- the value for thefromrecord componentarrow- the value for thearrowrecord componentlifetimeEvent- the value for thelifetimeEventrecord componentto- the value for thetorecord componentmessage- the value for themessagerecord componentcomment- the value for thecommentrecord component
-
-
Method Details
-
mermaid
-
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). -
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
arrow
Returns the value of thearrowrecord component.- Returns:
- the value of the
arrowrecord component
-
lifetimeEvent
Returns the value of thelifetimeEventrecord component.- Returns:
- the value of the
lifetimeEventrecord component
-
to
Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
comment
Returns the value of thecommentrecord component.- Returns:
- the value of the
commentrecord component
-