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)
-
-
Constructor Summary
Constructors Constructor Description ValuesAggregator()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addValue(double value)
static ValuesAggregator
createAveraging()
static ValuesAggregator
createMaximizing()
static ValuesAggregator
createMinimizing()
static ValuesAggregator
createSummational()
abstract double
getAggregatedValue()
boolean
isAggregatedAvailable()
-
-
-
Method Detail
-
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()
-
-