net.sf.basedb.util.collections
Class BasicItemToIdTransformer
java.lang.Object
net.sf.basedb.util.collections.BasicItemToIdTransformer
- All Implemented Interfaces:
- CollectionTransformer<BasicItem,Integer>
public class BasicItemToIdTransformer
- extends Object
- implements CollectionTransformer<BasicItem,Integer>
Collection transformer implementation that extracts the ID from
BasicItem
:s.
- Version:
- 2.10
- Author:
- Nicklas
- Last modified
- $Date: 2008-12-19 14:55:13 +0100 (Fri, 19 Dec 2008) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicItemToIdTransformer
public BasicItemToIdTransformer()
transform
public int transform(Collection<? extends BasicItem> source,
Collection<? super Integer> destination)
- Put the ID of each BasicItem in the source collection into the
destination collection.
- Specified by:
transform
in interface CollectionTransformer<BasicItem,Integer>
- Parameters:
source
- The source collectiondestination
- The destination collection
- Returns:
- The number of items added to the destination