java.lang.Object | +--org.apache.commons.collections.functors.ForClosureAll Implemented Interfaces:
ForClosure(int count, Closure closure) Constructor that performs no validation. |
void | execute(Object input) Execute the closure count times. |
static Closure | getInstance(int count, Closure closure) Factory method that performs validation. |
public ForClosure(int count, Closure closure)
getInstance
if you want that.
public void execute(Object input)
public static Closure getInstance(int count, Closure closure)
NOPClosure
.
A count of one returns the specified closure.