Interface Combiner.Container
-
- Enclosing class:
- Combiner
public static interface Combiner.Container
Defines an object that can be used to accumulate values and retrieve a result.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getCombinedValue()
Returns the combined result of all the values submitted so far.void
submit(double datum)
Submits a new numeric value for accumulation to the result.
-
-
-
Method Detail
-
submit
void submit(double datum)
Submits a new numeric value for accumulation to the result. In general, NaN values should not be submitted.- Parameters:
datum
- new value to accumulate
-
getCombinedValue
double getCombinedValue()
Returns the combined result of all the values submitted so far. In general, if no values have been submitted, a NaN should be returned.- Returns:
- combined value of all submitted data
-
-