Class BoxAndWhiskerItem

java.lang.Object
org.jfree.data.statistics.BoxAndWhiskerItem
All Implemented Interfaces:
Serializable

public class BoxAndWhiskerItem
extends Object
implements Serializable
Represents one data item within a box-and-whisker dataset. This class is immutable.
See Also:
Serialized Form
  • Constructor Details

    • BoxAndWhiskerItem

      public BoxAndWhiskerItem​(Number mean, Number median, Number q1, Number q3, Number minRegularValue, Number maxRegularValue, Number minOutlier, Number maxOutlier, List outliers)
      Creates a new box-and-whisker item.
      Parameters:
      mean - the mean (null permitted).
      median - the median (null permitted).
      q1 - the first quartile (null permitted).
      q3 - the third quartile (null permitted).
      minRegularValue - the minimum regular value (null permitted).
      maxRegularValue - the maximum regular value (null permitted).
      minOutlier - the minimum outlier (null permitted).
      maxOutlier - the maximum outlier (null permitted).
      outliers - the outliers (null permitted).
  • Method Details

    • getMean

      public Number getMean()
      Returns the mean.
      Returns:
      the mean (possibly null).
    • getMedian

      public Number getMedian()
      Returns the median.
      Returns:
      the median (possibly null).
    • getQ1

      public Number getQ1()
      Returns the first quartile.
      Returns:
      the first quartile (possibly null).
    • getQ3

      public Number getQ3()
      Returns the third quartile.
      Returns:
      the third quartile (possibly null).
    • getMinRegularValue

      public Number getMinRegularValue()
      Returns the minimum regular value.
      Returns:
      the minimum regular value (possibly null).
    • getMaxRegularValue

      public Number getMaxRegularValue()
      Returns the maximum regular value.
      Returns:
      the maximum regular value (possibly null).
    • getMinOutlier

      public Number getMinOutlier()
      Returns the minimum outlier.
      Returns:
      the minimum outlier (possibly null).
    • getMaxOutlier

      public Number getMaxOutlier()
      Returns the maximum outlier.
      Returns:
      the maximum outlier (possibly null).
    • getOutliers

      public List getOutliers()
      Returns a list of outliers.
      Returns:
      a list of outliers (possibly null).
    • equals

      public boolean equals​(Object obj)
      Tests this object for equality with an arbitrary object.
      Overrides:
      equals in class Object
      Parameters:
      obj - the object to test against (null permitted).
      Returns:
      a boolean.