2.17.2: 2011-06-17

net.sf.basedb.util.collections
Class RemoveAllTransformer<I>

java.lang.Object
  extended by net.sf.basedb.util.collections.RemoveAllTransformer<I>
All Implemented Interfaces:
CollectionTransformer<I,I>

public class RemoveAllTransformer<I>
extends Object
implements CollectionTransformer<I,I>

Collection transformer implementation that removes all elements in the source collection from the destination collection. This is equivalent to destination.removeAll(source).

Version:
2.10
Author:
Nicklas
Last modified
$Date: 2008-12-19 14:55:13 +0100 (Fri, 19 Dec 2008) $

Constructor Summary
RemoveAllTransformer()
           
 
Method Summary
 int transform(Collection<? extends I> source, Collection<? super I> destination)
          Remove all elements in the source collection from the destination collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoveAllTransformer

public RemoveAllTransformer()
Method Detail

transform

public int transform(Collection<? extends I> source,
                     Collection<? super I> destination)
Remove all elements in the source collection from the destination collection.

Specified by:
transform in interface CollectionTransformer<I,I>
Parameters:
source - The source collection
destination - The destination collection
Returns:
The number of elements removed

2.17.2: 2011-06-17