CollectionUtils#collect()
public static Collection collect(Iterator iterator, Transformer transformer, Collection collection) { if(iterator != null && transformer != null) { Object obj1; for(; iterator.hasNext(); collection.add(obj1)) { Object obj = iterator.next(); obj1 = transformer.transform(obj); } } return collection; }
「for(; iterator.hasNext(); collection.add(obj1))」の部分。