net.sourceforge.combean.util
Class GIteratorWithAction

Iterator with a Closure that is evaluated every time next() is called. The Closure gets the current value of the Iteration as argument.

Field Summary
 Closure action
           
 Iterator iter
           
 
Constructor Summary
GIteratorWithAction(Iterator iter, Closure action)
            Constructor
 
Method Summary
boolean hasNext()
          
Object next()
          
void remove()
          
 

Constructor Detail

GIteratorWithAction

public GIteratorWithAction(Iterator iter, Closure action)
Constructor
params:
iter Iterator which controls the iteration process
params:
action Closure which is called for every next() step


Method Detail

hasNext

public boolean hasNext()


next

public Object next()


remove

public void remove()