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

Comparing jsr166/src/extra166y/ParallelDoubleArrayWithBounds.java (file contents):
Revision 1.2 by jsr166, Tue Mar 15 19:47:02 2011 UTC vs.
Revision 1.7 by jsr166, Fri Jul 19 19:34:43 2013 UTC

# Line 28 | Line 28 | public abstract class ParallelDoubleArra
28       * only on the elements of the array between firstIndex
29       * (inclusive) and upperBound (exclusive).  The bound
30       * arguments are relative to the current bounds.  For example
31 <     * <tt>pa.withBounds(2, 8).withBounds(3, 5)</tt> indexes the
31 >     * {@code pa.withBounds(2, 8).withBounds(3, 5)} indexes the
32       * 5th (= 2+3) and 6th elements of pa. However, indices
33 <     * returned by methods such as <tt>indexOf</tt> are
33 >     * returned by methods such as {@code indexOf} are
34       * with respect to the underlying ParallelDoubleArray.
35       * @param firstIndex the lower bound (inclusive)
36       * @param upperBound the upper bound (exclusive)
# Line 41 | Line 41 | public abstract class ParallelDoubleArra
41  
42      /**
43       * Returns the index of some element equal to given target,
44 <     * or -1 if not present
44 >     * or -1 if not present.
45       * @param target the element to search for
46       * @return the index or -1 if not present
47       */
# Line 78 | Line 78 | public abstract class ParallelDoubleArra
78      public abstract ParallelDoubleArrayWithBounds cumulate(DoubleReducer reducer, double base);
79  
80      /**
81 <     * Replaces each element with the running sum
81 >     * Replaces each element with the running sum.
82       * @return this (to simplify use in expressions)
83       */
84      public abstract ParallelDoubleArrayWithBounds cumulateSum();
# Line 94 | Line 94 | public abstract class ParallelDoubleArra
94      public abstract double precumulate(DoubleReducer reducer, double base);
95  
96      /**
97 <     * Replaces each element with its prefix sum
97 >     * Replaces each element with its prefix sum.
98       * @return the total sum
99       */
100      public abstract double precumulateSum();
# Line 114 | Line 114 | public abstract class ParallelDoubleArra
114       * Comparable. Unlike Arrays.sort, this sort does not
115       * guarantee that elements with equal keys maintain their relative
116       * position in the array.
117     * @throws ClassCastException if any element is not Comparable.
117       * @return this (to simplify use in expressions)
118 +     * @throws ClassCastException if any element is not Comparable
119       */
120      public abstract ParallelDoubleArrayWithBounds sort();
121   }
122

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines