List of usage examples for org.apache.commons.collections4 Closure execute
void execute(T input);
From source file:com.link_intersystems.util.graph.GraphFacade.java
static void forAllDo(Iterator<?> iterator, Closure closure) { while (iterator.hasNext()) { Object next = iterator.next(); closure.execute(next); }//from w w w. j a va 2 s . co m }