Example usage for Java org.apache.commons.collections ClosureUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
Closure | chainedClosure(Closure[] closures) Create a new Closure that calls each closure in turn, passing the result into the next closure. |
Closure | chainedClosure(Collection closures) Create a new Closure that calls each closure in turn, passing the result into the next closure. |
Closure | exceptionClosure() Gets a Closure that always throws an exception. |
Closure | forClosure(int count, Closure closure) Creates a Closure that will call the closure count times. |
Closure | ifClosure(Predicate predicate, Closure trueClosure, Closure falseClosure) Create a new Closure that calls one of two closures depending on the specified predicate. |
Closure | invokerClosure(String methodName, Class[] paramTypes, Object[] args) Creates a Closure that will invoke a specific method on the closure's input object by reflection. |
Closure | nopClosure() Gets a Closure that will do nothing. |