Record Class BorderStyle
java.lang.Object
java.lang.Record
guideme.style.BorderStyle
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBorderStyle(ColorValue color, int width) Creates an instance of aBorderStylerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Field Details
-
NONE
-
-
Constructor Details
-
BorderStyle
Creates an instance of aBorderStylerecord class.- Parameters:
color- the value for thecolorrecord componentwidth- the value for thewidthrecord 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. -
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-