Record Class DecisionFigure.Circle
java.lang.Object
java.lang.Record
network.ike.docs.koncept.DecisionFigure.Circle
- All Implemented Interfaces:
DecisionFigure.Mark
- Enclosing class:
DecisionFigure
public static record DecisionFigure.Circle(double cx, double cy, double r, String fill, DecisionFigure.Stroke stroke, String role)
extends Record
implements DecisionFigure.Mark
A circle about its centre.
-
Constructor Summary
ConstructorsConstructorDescriptionCircle(double cx, double cy, double r, String fill, DecisionFigure.Stroke stroke, String role) Creates an instance of aCirclerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoublecx()Returns the value of thecxrecord component.doublecy()Returns the value of thecyrecord component.final booleanIndicates whether some other object is "equal to" this one.fill()Returns the value of thefillrecord component.final inthashCode()Returns a hash code value for this object.doubler()Returns the value of therrecord 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
-
Circle
public Circle(double cx, double cy, double r, String fill, DecisionFigure.Stroke stroke, String role) Creates an instance of aCirclerecord class.- Parameters:
cx- the value for thecxrecord componentcy- the value for thecyrecord componentr- the value for therrecord componentfill- the value for thefillrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
cx
public double cx()Returns the value of thecxrecord component.- Returns:
- the value of the
cxrecord component
-
cy
public double cy()Returns the value of thecyrecord component.- Returns:
- the value of the
cyrecord component
-
r
public double r()Returns the value of therrecord component.- Returns:
- the value of the
rrecord component
-
fill
Returns the value of thefillrecord component.- Returns:
- the value of the
fillrecord 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
-