ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/extra166y/ParallelLongArray.java
(Generate patch)

Comparing jsr166/src/extra166y/ParallelLongArray.java (file contents):
Revision 1.8 by jsr166, Sat Dec 29 23:55:19 2012 UTC vs.
Revision 1.9 by jsr166, Sun Dec 30 02:05:53 2012 UTC

# Line 101 | Line 101 | public class ParallelLongArray extends A
101  
102      /**
103       * Creates a new ParallelLongArray using the given executor and
104 <     * an array of the given size
104 >     * an array of the given size.
105       * @param size the array size
106       * @param executor the executor
107       */
# Line 194 | Line 194 | public class ParallelLongArray extends A
194      }
195  
196      /**
197 <     * Returns the executor used for computations
197 >     * Returns the executor used for computations.
198       * @return the executor
199       */
200      public ForkJoinPool getExecutor() { return ex; }
201  
202      /**
203 <     * Applies the given procedure to elements
203 >     * Applies the given procedure to elements.
204       * @param procedure the procedure
205       */
206      public void apply(LongProcedure procedure) {
# Line 208 | Line 208 | public class ParallelLongArray extends A
208      }
209  
210      /**
211 <     * Returns reduction of elements
211 >     * Returns reduction of elements.
212       * @param reducer the reducer
213       * @param base the result for an empty array
214       * @return reduction
# Line 218 | Line 218 | public class ParallelLongArray extends A
218      }
219  
220      /**
221 <     * Returns a new ParallelLongArray holding all elements
221 >     * Returns a new ParallelLongArray holding all elements.
222       * @return a new ParallelLongArray holding all elements
223       */
224      public ParallelLongArray all() {
# Line 249 | Line 249 | public class ParallelLongArray extends A
249  
250      /**
251       * Replaces elements with the results of applying the given
252 <     * mapping to each index and current element value
252 >     * mapping to each index and current element value.
253       * @param op the op
254       * @return this (to simplify use in expressions)
255       */
# Line 262 | Line 262 | public class ParallelLongArray extends A
262       * Replaces elements with the results of applying the given
263       * generator. For example, to fill the array with uniform random
264       * values, use
265 <     * <tt>replaceWithGeneratedValue(Ops.longRandom())</tt>
265 >     * <tt>replaceWithGeneratedValue(Ops.longRandom())</tt>.
266       * @param generator the generator
267       * @return this (to simplify use in expressions)
268       */
# Line 283 | Line 283 | public class ParallelLongArray extends A
283  
284      /**
285       * Replaces elements with results of applying
286 <     * <tt>op(thisElement, otherElement)</tt>
286 >     * <tt>op(thisElement, otherElement)</tt>.
287       * @param other the other array
288       * @param combiner the combiner
289       * @return this (to simplify use in expressions)
# Line 297 | Line 297 | public class ParallelLongArray extends A
297  
298      /**
299       * Replaces elements with results of applying
300 <     * <tt>op(thisElement, otherElement)</tt>
300 >     * <tt>op(thisElement, otherElement)</tt>.
301       * @param other the other array
302       * @param combiner the combiner
303       * @return this (to simplify use in expressions)
# Line 312 | Line 312 | public class ParallelLongArray extends A
312  
313      /**
314       * Returns the index of some element equal to given target, or -1
315 <     * if not present
315 >     * if not present.
316       * @param target the element to search for
317       * @return the index or -1 if not present
318       */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines