public MultipleResultCollectorContext<DPO> collect(Collection<ResultCollector<?, DPO>> resultCollectors) {
        if (resultCollectors != null) {
            addedTriggers.addAll(resultCollectors);
            addedDataProviders.addAll(resultCollectors);
        }

        // Change context
        return new MultipleResultCollectorContext<DPO>(addedTriggers, addedDataProviders);
    }
public MultipleResultCollectorContext < DPO > collect ( Collection < ResultCollector < ? , DPO > > resultCollectors ) { if ( resultCollectors != null ) { addedTriggers . addAll ( resultCollectors ) ; addedDataProviders . addAll ( resultCollectors ) ; } return new MultipleResultCollectorContext < DPO > ( addedTriggers , addedDataProviders ) ; }
Adds the specified result collectors as triggers and data providers to the validator under construction.

@param resultCollectors Result collectors to be added.

@return Context allowing further construction of the validator using the DSL.