5 |
|
*/ |
6 |
|
|
7 |
|
package extra166y; |
8 |
+ |
|
9 |
|
import jsr166y.*; |
10 |
|
import static extra166y.Ops.*; |
11 |
|
import java.util.*; |
303 |
|
* @param combiner the combiner |
304 |
|
* @return this (to simplify use in expressions) |
305 |
|
* @throws ArrayIndexOutOfBoundsException if other array has |
306 |
< |
* fewer elements than this array. |
306 |
> |
* fewer elements than this array |
307 |
|
*/ |
308 |
|
public ParallelLongArray replaceWithMapping(BinaryLongOp combiner, |
309 |
|
long[] other) { |
404 |
|
* the given reducer. For example, if the contents are the numbers |
405 |
|
* {@code 1, 2, 3}, and the reducer operation adds numbers, then |
406 |
|
* after invocation of this method, the contents would be {@code 1, |
407 |
< |
* 3, 6} (that is, {@code 1, 1+2, 1+2+3}); |
407 |
> |
* 3, 6} (that is, {@code 1, 1+2, 1+2+3}). |
408 |
|
* @param reducer the reducer |
409 |
|
* @param base the result for an empty array |
410 |
|
* @return this (to simplify use in expressions) |
421 |
|
* 2, 3}, and the reducer operation adds numbers, then after |
422 |
|
* invocation of this method, the contents would be {@code 0, 1, |
423 |
|
* 3} (that is, {@code 0, 0+1, 0+1+2}, and the return value |
424 |
< |
* would be 6 (that is, {@code 1+2+3}); |
424 |
> |
* would be 6 (that is, {@code 1+2+3}). |
425 |
|
* @param reducer the reducer |
426 |
|
* @param base the result for an empty array |
427 |
|
* @return the total reduction |
446 |
|
* Sorts the array, assuming all elements are Comparable. Unlike |
447 |
|
* Arrays.sort, this sort does not guarantee that elements |
448 |
|
* with equal keys maintain their relative position in the array. |
448 |
– |
* @throws ClassCastException if any element is not Comparable |
449 |
|
* @return this (to simplify use in expressions) |
450 |
+ |
* @throws ClassCastException if any element is not Comparable |
451 |
|
*/ |
452 |
|
public ParallelLongArray sort() { |
453 |
|
super.sort(); |