Class ValuesAggregator
java.lang.Object
com.atlassian.bamboo.clover.builder.coverage.ValuesAggregator
Combines multiple values into one
TODO Replace by java.util.DoubleSummaryStatistics (since JDK 1.8)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addValue
(double value) static ValuesAggregator
static ValuesAggregator
static ValuesAggregator
static ValuesAggregator
abstract double
boolean
-
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
-
createAveraging
-
createMaximizing
-
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()
-