32 |
|
* minimum granularity size (for example 10 here) for which you always |
33 |
|
* sequentially solve rather than subdividing. |
34 |
|
* |
35 |
+ |
* @since 1.7 |
36 |
+ |
* @author Doug Lea |
37 |
|
*/ |
38 |
|
public abstract class RecursiveTask<V> extends ForkJoinTask<V> { |
39 |
+ |
private static final long serialVersionUID = 5232453952276485270L; |
40 |
|
|
41 |
|
/** |
42 |
< |
* Empty constructor for use by subclasses. |
40 |
< |
*/ |
41 |
< |
protected RecursiveTask() { |
42 |
< |
} |
43 |
< |
|
44 |
< |
/** |
45 |
< |
* The result returned by compute method. |
42 |
> |
* The result of the computation. |
43 |
|
*/ |
44 |
|
V result; |
45 |
|
|
57 |
|
} |
58 |
|
|
59 |
|
/** |
60 |
< |
* Implements execution conventions for RecursiveTask |
60 |
> |
* Implements execution conventions for RecursiveTask. |
61 |
|
*/ |
62 |
|
protected final boolean exec() { |
63 |
|
result = compute(); |