Record Class DiagramNode
java.lang.Object
java.lang.Record
org.testingisdocumenting.znai.diagrams.graphviz.gen.DiagramNode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecolorGrouprecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hasUrl()height()Returns the value of theheightrecord component.Returns the value of thehighlightrecord component.id()Returns the value of theidrecord component.label()Returns the value of thelabelrecord component.shape()Returns the value of theshaperecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.width()Returns the value of thewidthrecord component.
-
Constructor Details
-
DiagramNode
public DiagramNode(String id, String label, String url, String colorGroup, String shape, Boolean highlight, Number width, Number height) Creates an instance of aDiagramNoderecord class.- Parameters:
id- the value for theidrecord componentlabel- the value for thelabelrecord componenturl- the value for theurlrecord componentcolorGroup- the value for thecolorGrouprecord componentshape- the value for theshaperecord componenthighlight- the value for thehighlightrecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord component
-
-
Method Details
-
hasUrl
-
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.- Returns:
- the value of the
idrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
colorGroup
Returns the value of thecolorGrouprecord component.- Returns:
- the value of the
colorGrouprecord component
-
shape
Returns the value of theshaperecord component.- Returns:
- the value of the
shaperecord component
-
highlight
Returns the value of thehighlightrecord component.- Returns:
- the value of the
highlightrecord component
-
width
Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-