252 |
|
} |
253 |
|
|
254 |
|
|
255 |
< |
public <T> List<Future<T>> invokeAll(List<Runnable> tasks, T result) |
255 |
> |
public <T> List<Future<T>> invokeAll(Collection<Runnable> tasks, T result) |
256 |
|
throws InterruptedException { |
257 |
|
if (tasks == null) |
258 |
|
throw new NullPointerException(); |
282 |
|
} |
283 |
|
} |
284 |
|
|
285 |
< |
public <T> List<Future<T>> invokeAll(List<Runnable> tasks, T result, |
285 |
> |
public <T> List<Future<T>> invokeAll(Collection<Runnable> tasks, T result, |
286 |
|
long timeout, TimeUnit unit) |
287 |
|
throws InterruptedException { |
288 |
|
if (tasks == null || unit == null) |
322 |
|
} |
323 |
|
} |
324 |
|
|
325 |
< |
public <T> List<Future<T>> invokeAll(List<Callable<T>> tasks) |
325 |
> |
public <T> List<Future<T>> invokeAll(Collection<Callable<T>> tasks) |
326 |
|
throws InterruptedException { |
327 |
|
if (tasks == null) |
328 |
|
throw new NullPointerException(); |
352 |
|
} |
353 |
|
} |
354 |
|
|
355 |
< |
public <T> List<Future<T>> invokeAll(List<Callable<T>> tasks, |
355 |
> |
public <T> List<Future<T>> invokeAll(Collection<Callable<T>> tasks, |
356 |
|
long timeout, TimeUnit unit) |
357 |
|
throws InterruptedException { |
358 |
|
if (tasks == null || unit == null) |