CLASS
- The type of the classes represented by the CMResult
spublic class CMAggregator<CLASS> extends Object implements ResultAggregator<CMResult<CLASS>,AggregatedCMResult<CLASS>>
ResultAggregator
for collecting multiple CMResult
s
and producing a single unified report.Constructor and Description |
---|
CMAggregator() |
Modifier and Type | Method and Description |
---|---|
void |
add(CMResult<CLASS> result)
Add a new result to this aggregation
|
AggregatedCMResult<CLASS> |
getAggregatedResult()
Get the aggregated result
|
public CMAggregator()
public void add(CMResult<CLASS> result)
ResultAggregator
add
in interface ResultAggregator<CMResult<CLASS>,AggregatedCMResult<CLASS>>
result
- the result to addpublic AggregatedCMResult<CLASS> getAggregatedResult()
ResultAggregator
getAggregatedResult
in interface ResultAggregator<CMResult<CLASS>,AggregatedCMResult<CLASS>>