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

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

# Line 291 | Line 291 | public class ParallelArray<T> extends Ab
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) {
# Line 299 | Line 299 | public class ParallelArray<T> extends Ab
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
# Line 309 | Line 309 | public class ParallelArray<T> extends Ab
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() {
# Line 318 | Line 318 | public class ParallelArray<T> extends Ab
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       */
# Line 352 | Line 352 | public class ParallelArray<T> extends Ab
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       */
# Line 386 | Line 386 | public class ParallelArray<T> extends Ab
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)
# Line 400 | Line 400 | public class ParallelArray<T> extends Ab
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)
# Line 413 | Line 413 | public class ParallelArray<T> extends Ab
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       */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines