net.shibboleth.metadata
Class SimpleCollectionMergeStrategy

java.lang.Object
  extended by net.shibboleth.metadata.SimpleCollectionMergeStrategy
All Implemented Interfaces:
CollectionMergeStrategy

public class SimpleCollectionMergeStrategy
extends Object
implements CollectionMergeStrategy

A CollectionMergeStrategy that adds the Item from each source, in order, by means of the Collection.addAll(Collection) method on the target.


Constructor Summary
SimpleCollectionMergeStrategy()
           
 
Method Summary
 void mergeCollection(Collection<Item<?>> target, Collection<Item<?>>... sources)
          Merges the results of each child pipeline in to the collection of Item given to this stage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCollectionMergeStrategy

public SimpleCollectionMergeStrategy()
Method Detail

mergeCollection

public void mergeCollection(@Nonnull@NonnullElements
                            Collection<Item<?>> target,
                            @Nonnull@NonnullElements
                            Collection<Item<?>>... sources)
Merges the results of each child pipeline in to the collection of Item given to this stage.

Specified by:
mergeCollection in interface CollectionMergeStrategy
Parameters:
target - collection in to which all the Items should be merged, never null
sources - collections of Items to be merged in to the target, never null not containing any null elements


Copyright © 1999-2012. All Rights Reserved.