public interface AggregationValue
Aggregation
.
Concrete implementations of this interface will implement different aggregating functions.
Modifier and Type | Method and Description |
---|---|
void |
add(long data)
Adds a data item to the aggregated value.
|
void |
clear()
Removes all data items previously added.
|
java.lang.Object |
getData() |
long |
getValue() |
void add(long data)
data
- the data valuevoid clear()
long getValue()
java.lang.Object getData()
Integer.valueOf( getValue() )
. More complex aggregations such may return objects
representing histograms, etc.