Record Class BarChart<Y extends Number & Comparable<Y>>
java.lang.Object
java.lang.Record
ai.timefold.solver.benchmark.impl.report.BarChart<Y>
- All Implemented Interfaces:
Chart
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBarChart.Builder<Y extends Number & Comparable<Y>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecategoriesrecord component.datasets()Returns the value of thedatasetsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleantimeOnY()Returns the value of thetimeOnYrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.voidwriteToFile(Path parentFolder) xLabel()Returns the value of thexLabelrecord component.yLabel()Returns the value of theyLabelrecord component.booleanyMax()yMin()
-
Constructor Details
-
BarChart
public BarChart(String id, String title, String xLabel, String yLabel, List<String> categories, List<Dataset<Y>> datasets, boolean timeOnY) Creates an instance of aBarChartrecord class.- Parameters:
id- the value for theidrecord componenttitle- the value for thetitlerecord componentxLabel- the value for thexLabelrecord componentyLabel- the value for theyLabelrecord componentcategories- the value for thecategoriesrecord componentdatasets- the value for thedatasetsrecord componenttimeOnY- the value for thetimeOnYrecord component
-
-
Method Details
-
yMin
-
yMax
-
yStepSize
-
yLogarithmic
public boolean yLogarithmic() -
writeToFile
- Specified by:
writeToFilein interfaceChart
-
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
-
title
-
xLabel
-
yLabel
-
categories
-
datasets
-
timeOnY
public boolean timeOnY()Returns the value of thetimeOnYrecord component.- Returns:
- the value of the
timeOnYrecord component
-