java.lang.Object
java.lang.Record
eu.hansolo.fx.charts.BoxPlots.BoxPlotData
-
Constructor Summary
ConstructorsConstructorDescriptionBoxPlotData(String name, double median, double q1, double q3, double iqr, double minValue, double maxValue, double minimum, double maximum, List<? extends ChartItem> outliers) Creates an instance of aBoxPlotDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleiqr()Returns the value of theiqrrecord component.doublemaximum()Returns the value of themaximumrecord component.doublemaxValue()Returns the value of themaxValuerecord component.doublemedian()Returns the value of themedianrecord component.doubleminimum()Returns the value of theminimumrecord component.doubleminValue()Returns the value of theminValuerecord component.name()Returns the value of thenamerecord component.outliers()Returns the value of theoutliersrecord component.doubleq1()Returns the value of theq1record component.doubleq3()Returns the value of theq3record component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BoxPlotData
public BoxPlotData(String name, double median, double q1, double q3, double iqr, double minValue, double maxValue, double minimum, double maximum, List<? extends ChartItem> outliers) Creates an instance of aBoxPlotDatarecord class.- Parameters:
name- the value for thenamerecord componentmedian- the value for themedianrecord componentq1- the value for theq1record componentq3- the value for theq3record componentiqr- the value for theiqrrecord componentminValue- the value for theminValuerecord componentmaxValue- the value for themaxValuerecord componentminimum- the value for theminimumrecord componentmaximum- the value for themaximumrecord componentoutliers- the value for theoutliersrecord 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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
median
public double median()Returns the value of themedianrecord component.- Returns:
- the value of the
medianrecord component
-
q1
public double q1()Returns the value of theq1record component.- Returns:
- the value of the
q1record component
-
q3
public double q3()Returns the value of theq3record component.- Returns:
- the value of the
q3record component
-
iqr
public double iqr()Returns the value of theiqrrecord component.- Returns:
- the value of the
iqrrecord component
-
minValue
public double minValue()Returns the value of theminValuerecord component.- Returns:
- the value of the
minValuerecord component
-
maxValue
public double maxValue()Returns the value of themaxValuerecord component.- Returns:
- the value of the
maxValuerecord component
-
minimum
public double minimum()Returns the value of theminimumrecord component.- Returns:
- the value of the
minimumrecord component
-
maximum
public double maximum()Returns the value of themaximumrecord component.- Returns:
- the value of the
maximumrecord component
-
outliers
Returns the value of theoutliersrecord component.- Returns:
- the value of the
outliersrecord component
-