Package net.sf.basedb.util.collections
Class AddAllTransformer<I>
java.lang.Object
net.sf.basedb.util.collections.AddAllTransformer<I>
- All Implemented Interfaces:
CollectionTransformer<I,
I>
Collection transformer implementation that adds all elements in
the source collection to the destination collection. This
is equivalent to
destination.addAll(source)
.- Version:
- 2.10
- Author:
- Nicklas
- Last modified
- $Date: 2008-12-19 14:55:13 +0100 (fr, 19 dec 2008) $
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
transform
(Collection<? extends I> source, Collection<? super I> destination) Add all elements of the source collection to the destination collection.
-
Constructor Details
-
AddAllTransformer
public AddAllTransformer()
-
-
Method Details
-
transform
Add all elements of the source collection to the destination collection.- Specified by:
transform
in interfaceCollectionTransformer<I,
I> - Parameters:
source
- The source collectiondestination
- The destination collection- Returns:
- The number of elements added
-