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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines