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

Comparing jsr166/src/extra166y/ParallelDoubleArray.java (file contents):
Revision 1.9 by jsr166, Wed Jan 16 00:51:11 2013 UTC vs.
Revision 1.14 by jsr166, Sun Jan 18 20:17:32 2015 UTC

# Line 5 | Line 5
5   */
6  
7   package extra166y;
8 +
9   import jsr166y.*;
10   import static extra166y.Ops.*;
11   import java.util.*;
# Line 248 | Line 249 | public class ParallelDoubleArray extends
249       * @param combiner the combiner
250       * @return this (to simplify use in expressions)
251       * @throws ArrayIndexOutOfBoundsException if other array has
252 <     * fewer elements than this array.
252 >     * fewer elements than this array
253       */
254      public ParallelDoubleArray replaceWithMapping
255          (BinaryDoubleOp combiner, ParallelDoubleArrayWithDoubleMapping other) {
# Line 263 | Line 264 | public class ParallelDoubleArray extends
264       * @param combiner the combiner
265       * @return this (to simplify use in expressions)
266       * @throws ArrayIndexOutOfBoundsException if other array has
267 <     * fewer elements than this array.
267 >     * fewer elements than this array
268       */
269      public ParallelDoubleArray replaceWithMapping(BinaryDoubleOp combiner,
270                                                    double[] other) {
# Line 364 | Line 365 | public class ParallelDoubleArray extends
365       * the given reducer. For example, if the contents are the numbers
366       * {@code 1, 2, 3}, and the reducer operation adds numbers, then
367       * after invocation of this method, the contents would be {@code 1,
368 <     * 3, 6} (that is, {@code 1, 1+2, 1+2+3});
368 >     * 3, 6} (that is, {@code 1, 1+2, 1+2+3}).
369       * @param reducer the reducer
370       * @param base the result for an empty array
371       * @return this (to simplify use in expressions)
# Line 381 | Line 382 | public class ParallelDoubleArray extends
382       * 2, 3}, and the reducer operation adds numbers, then after
383       * invocation of this method, the contents would be {@code 0, 1,
384       * 3} (that is, {@code 0, 0+1, 0+1+2}, and the return value
385 <     * would be 6 (that is, {@code  1+2+3});
385 >     * would be 6 (that is, {@code 1+2+3}).
386       * @param reducer the reducer
387       * @param base the result for an empty array
388       * @return the total reduction
# Line 406 | Line 407 | public class ParallelDoubleArray extends
407       * Sorts the array, assuming all elements are Comparable. Unlike
408       * Arrays.sort, this sort does not guarantee that elements
409       * with equal keys maintain their relative position in the array.
409     * @throws ClassCastException if any element is not Comparable
410       * @return this (to simplify use in expressions)
411 +     * @throws ClassCastException if any element is not Comparable
412       */
413      public ParallelDoubleArray sort() {
414          super.sort();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines