1 |
|
/* |
2 |
|
* Written by Doug Lea with assistance from members of JCP JSR-166 |
3 |
|
* Expert Group and released to the public domain, as explained at |
4 |
< |
* http://creativecommons.org/licenses/publicdomain |
4 |
> |
* http://creativecommons.org/publicdomain/zero/1.0/ |
5 |
|
*/ |
6 |
|
|
7 |
|
package extra166y; |
29 |
|
* @param op the op |
30 |
|
* @return this (to simplify use in expressions) |
31 |
|
*/ |
32 |
< |
public ParallelDoubleArrayWithFilter replaceWithMapping(DoubleOp op) { |
32 |
> |
public ParallelDoubleArrayWithFilter replaceWithMapping(DoubleOp op) { |
33 |
|
ex.invoke(new PAS.FJDTransform(this, origin, |
34 |
|
fence, null, op)); |
35 |
|
return this; |
37 |
|
|
38 |
|
/** |
39 |
|
* Replaces elements with the results of applying the given |
40 |
< |
* op to their indices |
40 |
> |
* op to their indices. |
41 |
|
* @param op the op |
42 |
|
* @return this (to simplify use in expressions) |
43 |
|
*/ |
49 |
|
|
50 |
|
/** |
51 |
|
* Replaces elements with the results of applying the given |
52 |
< |
* mapping to each index and current element value |
52 |
> |
* mapping to each index and current element value. |
53 |
|
* @param op the op |
54 |
|
* @return this (to simplify use in expressions) |
55 |
|
*/ |
60 |
|
} |
61 |
|
|
62 |
|
/** |
63 |
< |
* Replaces elements with results of applying the given |
64 |
< |
* generator. |
63 |
> |
* Replaces elements with results of applying the given generator. |
64 |
|
* @param generator the generator |
65 |
|
* @return this (to simplify use in expressions) |
66 |
|
*/ |
83 |
|
|
84 |
|
/** |
85 |
|
* Replaces elements with results of applying |
86 |
< |
* <tt>op(thisElement, otherElement)</tt> |
86 |
> |
* {@code op(thisElement, otherElement)}. |
87 |
|
* @param other the other array |
88 |
|
* @param combiner the combiner |
89 |
|
* @return this (to simplify use in expressions) |
98 |
|
|
99 |
|
/** |
100 |
|
* Replaces elements with results of applying |
101 |
< |
* <tt>op(thisElement, otherElement)</tt> |
101 |
> |
* {@code op(thisElement, otherElement)}. |
102 |
|
* @param other the other array |
103 |
|
* @param combiner the combiner |
104 |
|
* @return this (to simplify use in expressions) |
131 |
|
/** |
132 |
|
* Returns an operation prefix that causes a method to operate |
133 |
|
* only on elements for which the current selector (if |
134 |
< |
* present) and the given selector returns true |
134 |
> |
* present) and the given selector returns true. |
135 |
|
* @param selector the selector |
136 |
|
* @return operation prefix |
137 |
|
*/ |
141 |
|
/** |
142 |
|
* Returns an operation prefix that causes a method to operate |
143 |
|
* only on elements for which the current selector (if |
144 |
< |
* present) and the given binary selector returns true |
144 |
> |
* present) and the given binary selector returns true. |
145 |
|
* @param selector the selector |
146 |
|
* @return operation prefix |
147 |
|
*/ |
154 |
|
/** |
155 |
|
* Returns an operation prefix that causes a method to operate |
156 |
|
* only on elements for which the current selector (if |
157 |
< |
* present) and the given indexed selector returns true |
157 |
> |
* present) and the given indexed selector returns true. |
158 |
|
* @param selector the selector |
159 |
|
* @return operation prefix |
160 |
|
*/ |
189 |
|
final double dget(int i) { return this.array[i]; } |
190 |
|
|
191 |
|
} |
193 |
– |
|