public abstract class ValuesAggregator extends Object
Modifier and Type | Field and Description |
---|---|
protected long |
count |
protected double |
max |
protected double |
min |
protected double |
sum |
Constructor and Description |
---|
ValuesAggregator() |
Modifier and Type | Method and Description |
---|---|
void |
addValue(double value) |
static ValuesAggregator |
createAveraging() |
static ValuesAggregator |
createMaximizing() |
static ValuesAggregator |
createMinimizing() |
static ValuesAggregator |
createSummational() |
abstract double |
getAggregatedValue() |
boolean |
isAggregatedAvailable() |
protected double sum
protected double min
protected double max
protected long count
public static ValuesAggregator createSummational()
public static ValuesAggregator createAveraging()
public static ValuesAggregator createMaximizing()
public static ValuesAggregator createMinimizing()
public void addValue(double value)
public abstract double getAggregatedValue()
Double.NaN
if there's no datapublic boolean isAggregatedAvailable()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.