java.lang.Object
java.lang.Record
eu.hansolo.fx.charts.wafermap.ClassConfig
public record ClassConfig(javafx.scene.paint.Color fill, javafx.scene.paint.Color stroke, boolean visible)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionClassConfig(javafx.scene.paint.Color fill, javafx.scene.paint.Color stroke, boolean visible) Creates an instance of aClassConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.javafx.scene.paint.Colorfill()Returns the value of thefillrecord component.final inthashCode()Returns a hash code value for this object.javafx.scene.paint.Colorstroke()Returns the value of thestrokerecord component.final StringtoString()Returns a string representation of this record class.booleanvisible()Returns the value of thevisiblerecord component.
-
Constructor Details
-
ClassConfig
public ClassConfig(javafx.scene.paint.Color fill, javafx.scene.paint.Color stroke, boolean visible) Creates an instance of aClassConfigrecord class.- Parameters:
fill- the value for thefillrecord componentstroke- the value for thestrokerecord componentvisible- the value for thevisiblerecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
fill
public javafx.scene.paint.Color fill()Returns the value of thefillrecord component.- Returns:
- the value of the
fillrecord component
-
stroke
public javafx.scene.paint.Color stroke()Returns the value of thestrokerecord component.- Returns:
- the value of the
strokerecord component
-
visible
public boolean visible()Returns the value of thevisiblerecord component.- Returns:
- the value of the
visiblerecord component
-