Example usage for org.apache.commons.collections4 Closure execute

List of usage examples for org.apache.commons.collections4 Closure execute

Introduction

In this page you can find the example usage for org.apache.commons.collections4 Closure execute.

Prototype

void execute(T input);

Source Link

Document

Performs an action on the specified input object.

Usage

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
}