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 voidaddValue(double value)static ValuesAggregatorcreateAveraging()static ValuesAggregatorcreateMaximizing()static ValuesAggregatorcreateMinimizing()static ValuesAggregatorcreateSummational()abstract doublegetAggregatedValue()booleanisAggregatedAvailable()
-
-
-
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.NaNif there's no data
-
isAggregatedAvailable
public boolean isAggregatedAvailable()
-
-