Record Class DecisionFigure.Polyline
java.lang.Object
java.lang.Record
network.ike.docs.koncept.DecisionFigure.Polyline
- All Implemented Interfaces:
DecisionFigure.Mark
- Enclosing class:
DecisionFigure
public static record DecisionFigure.Polyline(double[] points, DecisionFigure.Stroke stroke, String role)
extends Record
implements DecisionFigure.Mark
An open polyline through its points, as
x0, y0, x1, y1, …, round-capped and round-joined.-
Constructor Summary
ConstructorsConstructorDescriptionPolyline(double[] points, DecisionFigure.Stroke stroke, String role) Creates an instance of aPolylinerecord class. -
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.double[]points()Returns the value of thepointsrecord component.role()Returns the value of therolerecord component.stroke()Returns the value of thestrokerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Polyline
Creates an instance of aPolylinerecord class.- Parameters:
points- the value for thepointsrecord componentstroke- the value for thestrokerecord componentrole- the value for therolerecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
points
public double[] points()Returns the value of thepointsrecord component.- Returns:
- the value of the
pointsrecord component
-
stroke
Returns the value of thestrokerecord component.- Returns:
- the value of the
strokerecord component
-
role
Returns the value of therolerecord component.- Specified by:
rolein interfaceDecisionFigure.Mark- Returns:
- the value of the
rolerecord component
-