5 |
|
*/ |
6 |
|
|
7 |
|
package extra166y; |
8 |
+ |
|
9 |
|
import jsr166y.*; |
10 |
|
import static extra166y.Ops.*; |
11 |
|
import java.util.*; |
12 |
|
import java.util.concurrent.atomic.*; |
12 |
– |
import java.lang.reflect.Array; |
13 |
– |
|
13 |
|
|
14 |
|
/** |
15 |
|
* A prefix view of ParallelLongArray that causes operations to apply |
29 |
|
* @param op the op |
30 |
|
* @return this (to simplify use in expressions) |
31 |
|
*/ |
32 |
< |
public ParallelLongArrayWithFilter replaceWithMapping(LongOp op) { |
32 |
> |
public ParallelLongArrayWithFilter replaceWithMapping(LongOp op) { |
33 |
|
ex.invoke(new PAS.FJLTransform |
34 |
|
(this, origin, fence, null, op)); |
35 |
|
return this; |
84 |
|
|
85 |
|
/** |
86 |
|
* Replaces elements with results of applying |
87 |
< |
* <tt>op(thisElement, otherElement)</tt>. |
87 |
> |
* {@code op(thisElement, otherElement)}. |
88 |
|
* @param other the other array |
89 |
|
* @param combiner the combiner |
90 |
|
* @return this (to simplify use in expressions) |
99 |
|
|
100 |
|
/** |
101 |
|
* Replaces elements with results of applying |
102 |
< |
* <tt>op(thisElement, otherElement)</tt>. |
102 |
> |
* {@code op(thisElement, otherElement)}. |
103 |
|
* @param other the other array |
104 |
|
* @param combiner the combiner |
105 |
|
* @return this (to simplify use in expressions) |