Class RangeCalculator

java.lang.Object
com.atlassian.bamboo.clover.reports.charts.RangeCalculator

public class RangeCalculator extends Object
Reads values from a given series from XYDataset and returns min and max value.
  • Constructor Details

    • RangeCalculator

      public RangeCalculator()
  • Method Details

    • getMinMaxFromSeries

      @NotNull public static @NotNull Optional<org.apache.commons.lang3.Range<Double>> getMinMaxFromSeries(@NotNull @NotNull org.jfree.data.xy.XYDataset dataSet, int seriesNumber)
      Returns:
      Option with range(min, max) or empty if no data was found
    • getMinMaxFromSeries

      @NotNull public static @NotNull Optional<org.apache.commons.lang3.Range<Double>> getMinMaxFromSeries(@NotNull @NotNull org.jfree.data.xy.XYDataset dataSet, int seriesNumber, double minimumRelativeMargin, double minimumAbsoluteMargin, double lowerBound, double upperBound)