Package net.shibboleth.metadata
Class SimpleCollectionMergeStrategy
java.lang.Object
net.shibboleth.metadata.SimpleCollectionMergeStrategy
- All Implemented Interfaces:
CollectionMergeStrategy
@Immutable
public class SimpleCollectionMergeStrategy
extends Object
implements CollectionMergeStrategy
A
CollectionMergeStrategy that adds the Item from each source, in order, by means of the
List.addAll(Collection) method on the target.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SimpleCollectionMergeStrategy
public SimpleCollectionMergeStrategy()
-
-
Method Details
-
merge
public <T> void merge(@Nonnull @NonnullElements List<Item<T>> target, @Nonnull @NonnullElements List<List<Item<T>>> sources) Description copied from interface:CollectionMergeStrategyMerges the results of each child pipeline in to the collection of Item given to this stage.- Specified by:
mergein interfaceCollectionMergeStrategy- Type Parameters:
T- type of data contained in the items- Parameters:
target- 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 elements
-