Class ValuesAggregator

java.lang.Object
com.atlassian.bamboo.clover.builder.coverage.ValuesAggregator

public abstract class ValuesAggregator extends Object
Combines multiple values into one TODO Replace by java.util.DoubleSummaryStatistics (since JDK 1.8)
  • Field Details

    • sum

      protected double sum
    • min

      protected double min
    • max

      protected double max
    • count

      protected long count
  • Constructor Details

    • ValuesAggregator

      public ValuesAggregator()
  • Method Details

    • createSummational

      public static ValuesAggregator createSummational()
    • createAveraging

      public static ValuesAggregator createAveraging()
    • createMaximizing

      public static ValuesAggregator createMaximizing()
    • createMinimizing

      public static ValuesAggregator createMinimizing()
    • addValue

      public void addValue(double value)
    • getAggregatedValue

      public abstract double getAggregatedValue()
      Returns:
      double - result of aggregation or Double.NaN if there's no data
    • isAggregatedAvailable

      public boolean isAggregatedAvailable()