Record Class DecisionFigure.Stroke
java.lang.Object
java.lang.Record
network.ike.docs.koncept.DecisionFigure.Stroke
- Enclosing class:
DecisionFigure
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolour()Returns the value of thecolourrecord component.booleandashed()Returns the value of thedashedrecord component.static DecisionFigure.Strokefinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static DecisionFigure.Strokefinal StringtoString()Returns a string representation of this record class.doublewidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
Stroke
Creates an instance of aStrokerecord class.- Parameters:
colour- the value for thecolourrecord componentwidth- the value for thewidthrecord componentdashed- the value for thedashedrecord component
-
-
Method Details
-
solid
-
dashed
-
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. -
colour
Returns the value of thecolourrecord component.- Returns:
- the value of the
colourrecord component
-
width
public double width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
dashed
public boolean dashed()Returns the value of thedashedrecord component.- Returns:
- the value of the
dashedrecord component
-