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 (fr, 19 dec 2008) $
  • Constructor Details

    • BasicItemToIdTransformer

      public BasicItemToIdTransformer()
  • Method Details

    • 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