/** * Create a task that is a composite of several other tasks. * * @param runnables the tasks * @return the composite task */ public static Runnable compositeTask(final Collection<Runnable> runnables) { return new CompositeTask(runnables.toArray(new Runnable[runnables.size()])); }
/** * Create a task that is a composite of several other tasks. * * @param runnables the tasks * @return the composite task */ public static Runnable compositeTask(final Runnable... runnables) { return new CompositeTask(runnables.clone()); }
/** * Create a task that is a composite of several other tasks. * * @param runnables the tasks * @return the composite task */ public static Runnable compositeTask(final Collection<Runnable> runnables) { return new CompositeTask(runnables.toArray(new Runnable[runnables.size()])); }
/** * Create a task that is a composite of several other tasks. * * @param runnables the tasks * @return the composite task */ public static Runnable compositeTask(final Collection<Runnable> runnables) { return new CompositeTask(runnables.toArray(new Runnable[runnables.size()])); }
/** * Create a task that is a composite of several other tasks. * * @param runnables the tasks * @return the composite task */ public static Runnable compositeTask(final Runnable... runnables) { return new CompositeTask(runnables.clone()); }
/** * Create a task that is a composite of several other tasks. * * @param runnables the tasks * @return the composite task */ public static Runnable compositeTask(final Runnable... runnables) { return new CompositeTask(runnables.clone()); }