java.lang.Object | +--org.apache.commons.collections.functors.WhileClosureAll Implemented Interfaces:
WhileClosure(Predicate predicate, Closure closure, boolean doLoop) Constructor that performs no validation. |
void | execute(Object input) Execute the closure until the predicate is false. |
static Closure | getInstance(Predicate predicate, Closure closure, boolean doLoop) Factory method that performs validation. |
public WhileClosure(Predicate predicate, Closure closure, boolean doLoop)
getInstance
if you want that.
public void execute(Object input)
public static Closure getInstance(Predicate predicate, Closure closure, boolean doLoop)
- if the predicate or closure is null