Record Class LegendSeriesRow
java.lang.Object
java.lang.Record
com.arbergashi.charts.ui.legend.LegendSeriesRow
-
Constructor Summary
Constructors -
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.booleanReturns the value of thehasSettingsrecord component.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.values()Returns the value of thevaluesrecord component.booleanvisible()Returns the value of thevisiblerecord component.
-
Constructor Details
-
LegendSeriesRow
public LegendSeriesRow(String id, String name, Color color, boolean visible, boolean hasSettings, Map<String, Object> values) Creates an instance of aLegendSeriesRowrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentcolor- the value for thecolorrecord componentvisible- the value for thevisiblerecord componenthasSettings- the value for thehasSettingsrecord componentvalues- the value for thevaluesrecord 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. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
visible
public boolean visible()Returns the value of thevisiblerecord component.- Returns:
- the value of the
visiblerecord component
-
hasSettings
public boolean hasSettings()Returns the value of thehasSettingsrecord component.- Returns:
- the value of the
hasSettingsrecord component
-
values
-