Interface Aggregator<R extends Result>

  • Type Parameters:
    R - accepted result type
    All Known Implementing Classes:
    StackProfiler.StackResultAggregator

    public interface Aggregator<R extends Result>
    Aggregator composes multiple results into one. It is assumed the collection has the results of specified type. This class is generic to save some of the unchecked casts in the code.
    • Method Detail

      • aggregate

        R aggregate​(Collection<R> results)
        Aggregate the results.
        Parameters:
        results - results to aggregate
        Returns:
        aggregated result; may throw exceptions on validation errors