12 |
|
* ForkJoinTasks. Because <tt>null</tt> is the only valid value of |
13 |
|
* <tt>Void</tt>, methods such as join always return <tt>null</tt> |
14 |
|
* upon completion. |
15 |
< |
* |
15 |
> |
* |
16 |
|
* <p><b>Sample Usages.</b> Here is a sketch of a ForkJoin sort that |
17 |
|
* sorts a given <tt>long[]</tt> array: |
18 |
|
* |
126 |
|
public abstract class RecursiveAction extends ForkJoinTask<Void> { |
127 |
|
|
128 |
|
/** |
129 |
< |
* The main computation performed by this task. |
129 |
> |
* The main computation performed by this task. |
130 |
|
*/ |
131 |
|
protected abstract void compute(); |
132 |
|
|