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 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: CollectionMergeStrategy
      Merges the results of each child pipeline in to the collection of Item given to this stage.
      Specified by:
      merge in interface CollectionMergeStrategy
      Type Parameters:
      T - type of data contained in the items
      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