public class SimpleCollectionMergeStrategy extends Object implements CollectionMergeStrategy
CollectionMergeStrategy that adds the Item from each source, in order, by means of the
Collection.addAll(Collection) method on the target.| Constructor and Description |
|---|
SimpleCollectionMergeStrategy() |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
mergeCollection(Collection<Item<T>> target,
List<Collection<Item<T>>> sources)
Merges the results of each child pipeline in to the collection of Item given to this stage.
|
public <T> void mergeCollection(@Nonnull@NonnullElements Collection<Item<T>> target, @Nonnull@NonnullElements List<Collection<Item<T>>> sources)
mergeCollection in interface CollectionMergeStrategyT - type of data contained in the itemstarget - collection in to which all the Items should be merged, never nullsources - collections of Items to be merged in to the target, never null not containing any null elementsCopyright © 1999–2016. All rights reserved.