/** * Creates a Closure that will call the closure <code>count</code> times. * <p> * A null closure or zero count returns the <code>NOPClosure</code>. * * @see org.apache.commons.collections.functors.ForClosure * * @param count the number of times to loop * @param closure the closure to call repeatedly * @return the <code>for</code> closure */ public static Closure forClosure(int count, Closure closure) { return ForClosure.getInstance(count, closure); }
/** * Creates a Closure that will call the closure <code>count</code> times. * <p> * A null closure or zero count returns the <code>NOPClosure</code>. * * @see org.apache.commons.collections.functors.ForClosure * * @param count the number of times to loop * @param closure the closure to call repeatedly * @return the <code>for</code> closure */ public static Closure forClosure(int count, Closure closure) { return ForClosure.getInstance(count, closure); }
/** * Creates a Closure that will call the closure <code>count</code> times. * <p> * A null closure or zero count returns the <code>NOPClosure</code>. * * @see org.apache.commons.collections.functors.ForClosure * * @param count the number of times to loop * @param closure the closure to call repeatedly * @return the <code>for</code> closure */ public static Closure forClosure(int count, Closure closure) { return ForClosure.getInstance(count, closure); }
/** * Creates a Closure that will call the closure <code>count</code> times. * <p> * A null closure or zero count returns the <code>NOPClosure</code>. * * @see org.apache.commons.collections.functors.ForClosure * * @param count the number of times to loop * @param closure the closure to call repeatedly * @return the <code>for</code> closure */ public static Closure forClosure(int count, Closure closure) { return ForClosure.getInstance(count, closure); }
/** * Creates a Closure that will call the closure <code>count</code> times. * <p> * A null closure or zero count returns the <code>NOPClosure</code>. * * @see org.apache.commons.collections.functors.ForClosure * * @param count the number of times to loop * @param closure the closure to call repeatedly * @return the <code>for</code> closure */ public static Closure forClosure(int count, Closure closure) { return ForClosure.getInstance(count, closure); }
/** * Creates a Closure that will call the closure <code>count</code> times. * <p> * A null closure or zero count returns the <code>NOPClosure</code>. * * @see org.apache.commons.collections.functors.ForClosure * * @param count the number of times to loop * @param closure the closure to call repeatedly * @return the <code>for</code> closure */ public static Closure forClosure(int count, Closure closure) { return ForClosure.getInstance(count, closure); }
/** * Creates a Closure that will call the closure <code>count</code> times. * <p> * A null closure or zero count returns the <code>NOPClosure</code>. * * @see org.apache.commons.collections.functors.ForClosure * * @param count the number of times to loop * @param closure the closure to call repeatedly * @return the <code>for</code> closure */ public static Closure forClosure(int count, Closure closure) { return ForClosure.getInstance(count, closure); }