|
|||||
| FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||
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 |
|---|
public GIteratorWithAction(Iterator iter, Closure action)
| Method Detail |
|---|
public boolean hasNext()
public Object next()
public void remove()