Record Class BoxPlots.BoxPlotData

java.lang.Object
java.lang.Record
eu.hansolo.fx.charts.BoxPlots.BoxPlotData
Enclosing class:
BoxPlots<T extends ChartItem>

public static record BoxPlots.BoxPlotData(String name, double median, double q1, double q3, double iqr, double minValue, double maxValue, double minimum, double maximum, List<? extends ChartItem> outliers) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 a BoxPlotData record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    double
    iqr()
    Returns the value of the iqr record component.
    double
    Returns the value of the maximum record component.
    double
    Returns the value of the maxValue record component.
    double
    Returns the value of the median record component.
    double
    Returns the value of the minimum record component.
    double
    Returns the value of the minValue record component.
    Returns the value of the name record component.
    List<? extends ChartItem>
    Returns the value of the outliers record component.
    double
    q1()
    Returns the value of the q1 record component.
    double
    q3()
    Returns the value of the q3 record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a BoxPlotData record class.
      Parameters:
      name - the value for the name record component
      median - the value for the median record component
      q1 - the value for the q1 record component
      q3 - the value for the q3 record component
      iqr - the value for the iqr record component
      minValue - the value for the minValue record component
      maxValue - the value for the maxValue record component
      minimum - the value for the minimum record component
      maximum - the value for the maximum record component
      outliers - the value for the outliers record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • median

      public double median()
      Returns the value of the median record component.
      Returns:
      the value of the median record component
    • q1

      public double q1()
      Returns the value of the q1 record component.
      Returns:
      the value of the q1 record component
    • q3

      public double q3()
      Returns the value of the q3 record component.
      Returns:
      the value of the q3 record component
    • iqr

      public double iqr()
      Returns the value of the iqr record component.
      Returns:
      the value of the iqr record component
    • minValue

      public double minValue()
      Returns the value of the minValue record component.
      Returns:
      the value of the minValue record component
    • maxValue

      public double maxValue()
      Returns the value of the maxValue record component.
      Returns:
      the value of the maxValue record component
    • minimum

      public double minimum()
      Returns the value of the minimum record component.
      Returns:
      the value of the minimum record component
    • maximum

      public double maximum()
      Returns the value of the maximum record component.
      Returns:
      the value of the maximum record component
    • outliers

      public List<? extends ChartItem> outliers()
      Returns the value of the outliers record component.
      Returns:
      the value of the outliers record component