Example usage for org.apache.commons.functor UnaryProcedure run

List of usage examples for org.apache.commons.functor UnaryProcedure run

Introduction

In this page you can find the example usage for org.apache.commons.functor UnaryProcedure run.

Prototype

void run(A obj);

Source Link

Document

Execute this procedure.

Usage

From source file:org.mili.core.io.DefaultFileWalker.java

@Override
public void walk(UnaryProcedure<File> f) {
    Validate.notNull(f, "walk function cannot be null!");
    Iterator<?> fs = FileUtils.iterateFiles(this.root, new String[] { "jar" }, true);
    while (fs.hasNext()) {
        File f0 = (File) fs.next();
        if (f0.isFile()) {
            f.run(f0);
        }//from   w  w w .j  a v  a 2  s . com
    }
}