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

Comparing jsr166/src/test/extra166y/MapReduceDemo.java (file contents):
Revision 1.5 by jsr166, Fri Feb 15 22:34:45 2013 UTC vs.
Revision 1.6 by jsr166, Fri Sep 27 17:07:44 2013 UTC

# Line 16 | Line 16 | public class MapReduceDemo {
16      /**
17       * Sequential version, for performance comparison
18       */
19 <    static <T, U> U seqMapReduce(T[] array,
20 <                                 Ops.Op<T,U> mapper,
21 <                                 Ops.Reducer<U> reducer,
22 <                                 U base) {
19 >    static <T,U> U seqMapReduce(T[] array,
20 >                                Ops.Op<T,U> mapper,
21 >                                Ops.Reducer<U> reducer,
22 >                                U base) {
23          int n = array.length;
24          U x = base;
25          for (int i = 0; i < n; ++i)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines