2.17.2: 2011-06-17

net.sf.basedb.util.collections
Class BasicItemToIdTransformer

java.lang.Object
  extended by 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) $

Constructor Summary
BasicItemToIdTransformer()
           
 
Method Summary
 int transform(Collection<? extends BasicItem> source, Collection<? super Integer> destination)
          Put the ID of each BasicItem in the source collection into the destination collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicItemToIdTransformer

public BasicItemToIdTransformer()
Method Detail

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 collection
destination - The destination collection
Returns:
The number of items added to the destination

2.17.2: 2011-06-17