273 |
|
* mapped ParallelArray. |
274 |
|
*/ |
275 |
|
public static interface SummaryStatistics<T> { |
276 |
< |
/** Return the number of elements */ |
276 |
> |
/** Returns the number of elements */ |
277 |
|
public int size(); |
278 |
< |
/** Return the minimum element, or null if empty */ |
278 |
> |
/** Returns the minimum element, or null if empty */ |
279 |
|
public T min(); |
280 |
< |
/** Return the maximum element, or null if empty */ |
280 |
> |
/** Returns the maximum element, or null if empty */ |
281 |
|
public T max(); |
282 |
< |
/** Return the index of the minimum element, or -1 if empty */ |
282 |
> |
/** Returns the index of the minimum element, or -1 if empty */ |
283 |
|
public int indexOfMin(); |
284 |
< |
/** Return the index of the maximum element, or -1 if empty */ |
284 |
> |
/** Returns the index of the maximum element, or -1 if empty */ |
285 |
|
public int indexOfMax(); |
286 |
|
} |
287 |
|
|
288 |
|
/** |
289 |
< |
* Returns the executor used for computations |
289 |
> |
* Returns the executor used for computations. |
290 |
|
* @return the executor |
291 |
|
*/ |
292 |
|
public ForkJoinPool getExecutor() { return ex; } |
1096 |
|
} |
1097 |
|
|
1098 |
|
/** |
1099 |
< |
* Make len slots available at index |
1099 |
> |
* Makes len slots available at index. |
1100 |
|
*/ |
1101 |
|
final void insertSlotsAt(int index, int len) { |
1102 |
|
if (len <= 0) |