public void foreach(final Consumer<Issue> sink) {
   final DatabaseIssuesIterator iterator = new DatabaseIssuesIterator(delegator, issueFactory);
   try {
     CollectionUtil.foreach(iterator, sink);
   } finally {
     iterator.close();
   }
 }
Ejemplo n.º 2
0
 public void foreach(final Consumer<Issue> sink) {
   CollectionUtil.foreach(
       new AbstractTransformIssueIterator<Long>(ids) {
         @Override
         protected Issue transform(final Long o) {
           return issueManager.getIssueObject(o);
         }
       },
       sink);
 }