Package de.xam.featdoc.mermaid.flowchart
Record Class Node
java.lang.Object
java.lang.Record
de.xam.featdoc.mermaid.flowchart.Node
- All Implemented Interfaces:
INode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.@Nullable Stringlabel()Returns the value of thelabelrecord component.de.xam.featdoc.mermaid.flowchart.Node.Shapeshape()Returns the value of theshaperecord component.text()voidtoMermaidSyntax(LineWriter lineWriter) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Node
public Node(String id, de.xam.featdoc.mermaid.flowchart.Node.Shape shape, @Nullable @Nullable String label) Creates an instance of aNoderecord class.- Parameters:
id- the value for theidrecord componentshape- the value for theshaperecord componentlabel- the value for thelabelrecord component
-
-
Method Details
-
text
-
toMermaidSyntax
- Specified by:
toMermaidSyntaxin interfaceINode
-
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). -
id
Returns the value of theidrecord component. -
shape
public de.xam.featdoc.mermaid.flowchart.Node.Shape shape()Returns the value of theshaperecord component.- Returns:
- the value of the
shaperecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-