291 |
|
public ForkJoinPool getExecutor() { return ex; } |
292 |
|
|
293 |
|
/** |
294 |
< |
* Applies the given procedure to elements |
294 |
> |
* Applies the given procedure to elements. |
295 |
|
* @param procedure the procedure |
296 |
|
*/ |
297 |
|
public void apply(Procedure<? super T> procedure) { |
299 |
|
} |
300 |
|
|
301 |
|
/** |
302 |
< |
* Returns reduction of elements |
302 |
> |
* Returns reduction of elements. |
303 |
|
* @param reducer the reducer |
304 |
|
* @param base the result for an empty array |
305 |
|
* @return reduction |
309 |
|
} |
310 |
|
|
311 |
|
/** |
312 |
< |
* Returns a new ParallelArray holding all elements |
312 |
> |
* Returns a new ParallelArray holding all elements. |
313 |
|
* @return a new ParallelArray holding all elements |
314 |
|
*/ |
315 |
|
public ParallelArray<T> all() { |
318 |
|
|
319 |
|
/** |
320 |
|
* Returns a new ParallelArray with the given element type holding |
321 |
< |
* all elements |
321 |
> |
* all elements. |
322 |
|
* @param elementType the type of the elements |
323 |
|
* @return a new ParallelArray holding all elements |
324 |
|
*/ |
352 |
|
|
353 |
|
/** |
354 |
|
* Replaces elements with the results of applying the given |
355 |
< |
* mapping to each index and current element value |
355 |
> |
* mapping to each index and current element value. |
356 |
|
* @param op the op |
357 |
|
* @return this (to simplify use in expressions) |
358 |
|
*/ |
386 |
|
|
387 |
|
/** |
388 |
|
* Replaces elements with results of applying |
389 |
< |
* <tt>op(thisElement, otherElement)</tt> |
389 |
> |
* <tt>op(thisElement, otherElement)</tt>. |
390 |
|
* @param other the other array |
391 |
|
* @param combiner the combiner |
392 |
|
* @return this (to simplify use in expressions) |
400 |
|
|
401 |
|
/** |
402 |
|
* Replaces elements with results of applying |
403 |
< |
* <tt>op(thisElement, otherElement)</tt> |
403 |
> |
* <tt>op(thisElement, otherElement)</tt>. |
404 |
|
* @param other the other array |
405 |
|
* @param combiner the combiner |
406 |
|
* @return this (to simplify use in expressions) |
413 |
|
|
414 |
|
/** |
415 |
|
* Returns the index of some element equal to given target, |
416 |
< |
* or -1 if not present |
416 |
> |
* or -1 if not present. |
417 |
|
* @param target the element to search for |
418 |
|
* @return the index or -1 if not present |
419 |
|
*/ |