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.9 by jsr166, Wed Jan 16 00:51:11 2013 UTC vs.
Revision 1.13 by jsr166, Fri Feb 15 22:27:11 2013 UTC

# Line 509 | Line 509 | public class ParallelArray<T> extends Ab
509       * the given reducer. For example, if the contents are the numbers
510       * {@code 1, 2, 3}, and the reducer operation adds numbers, then
511       * after invocation of this method, the contents would be {@code 1,
512 <     * 3, 6} (that is, {@code 1, 1+2, 1+2+3});
512 >     * 3, 6} (that is, {@code 1, 1+2, 1+2+3}).
513       * @param reducer the reducer
514       * @param base the result for an empty array
515       * @return this (to simplify use in expressions)
# Line 526 | Line 526 | public class ParallelArray<T> extends Ab
526       * 2, 3}, and the reducer operation adds numbers, then after
527       * invocation of this method, the contents would be {@code 0, 1,
528       * 3} (that is, {@code 0, 0+1, 0+1+2}, and the return value
529 <     * would be 6 (that is, {@code  1+2+3});
529 >     * would be 6 (that is, {@code  1+2+3}).
530       * @param reducer the reducer
531       * @param base the result for an empty array
532       * @return the total reduction
533       */
534      public T precumulate(Reducer<T> reducer, T base) {
535 <        return (T)(super.precumulate(reducer, base));
535 >        return super.precumulate(reducer, base);
536      }
537  
538      /**
# Line 755 | Line 755 | public class ParallelArray<T> extends Ab
755       * @param op the op
756       * @return operation prefix
757       */
758 <    public <U> ParallelArrayWithMapping<T, U> withMapping
758 >    public <U> ParallelArrayWithMapping<T,U> withMapping
759          (Op<? super T, ? extends U> op) {
760          return super.withMapping(op);
761      }
# Line 1037 | Line 1037 | public class ParallelArray<T> extends Ab
1037      public T[] getArray() { return array; }
1038  
1039      /**
1040 <     * Equivalent to {@code asList().toString()}
1040 >     * Equivalent to {@code asList().toString()}.
1041       * @return a string representation
1042       */
1043      public String toString() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines