Package com.storedobject.chart
Record Class BoxplotData.Boxplot
java.lang.Object
java.lang.Record
com.storedobject.chart.BoxplotData.Boxplot
- Record Components:
lower
- The lower bound of the data.q1
- The first quartile (Q1), representing the 25th percentile of the data.median
- The median, representing the 50th percentile of the data.q3
- The third quartile (Q3), representing the 75th percentile of the data.upper
- The upper bound of the data.
- Enclosing class:
BoxplotData
public static record BoxplotData.Boxplot(Number lower, Number q1, Number median, Number q3, Number upper)
extends Record
Represents a boxplot data record with the key statistical parts of a boxplot.
The components include lower bound, first quartile (Q1), median, third quartile (Q3),
and upper bound.
This record provides an immutable representation of these values.
- Author:
- Syam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.lower()
Returns the value of thelower
record component.median()
Returns the value of themedian
record component.q1()
Returns the value of theq1
record component.q3()
Returns the value of theq3
record component.toString()
Returns a string representation of this record class.upper()
Returns the value of theupper
record component.
-
Constructor Details
-
Boxplot
Creates an instance of aBoxplot
record class.
-
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
lower
-
q1
-
median
-
q3
-
upper
-