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.12 by jsr166, Tue Feb 5 17:49:18 2013 UTC vs.
Revision 1.15 by jsr166, Sat Jul 20 19:23:09 2013 UTC

# Line 133 | Line 133 | import java.lang.reflect.Array;
133   *     public boolean op(Student s) { return s.credits > 90; }
134   *   }
135   *   static final IsSenior isSenior = new IsSenior();
136 < *   static final class GpaField implements ObjectToDouble&lt;Student&gt {
136 > *   static final class GpaField implements ObjectToDouble&lt;Student&gt; {
137   *     public double op(Student s) { return s.gpa; }
138   *   }
139   *   static final GpaField gpaField = new GpaField();
# Line 551 | Line 551 | public class ParallelArray<T> extends Ab
551       * Sorts the array, assuming all elements are Comparable. Unlike
552       * Arrays.sort, this sort does not guarantee that elements
553       * with equal keys maintain their relative position in the array.
554     * @throws ClassCastException if any element is not Comparable
554       * @return this (to simplify use in expressions)
555 +     * @throws ClassCastException if any element is not Comparable
556       */
557      public ParallelArray<T> sort() {
558          super.sort();
# 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      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines