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

Comparing jsr166/src/extra166y/ParallelLongArrayWithBounds.java (file contents):
Revision 1.1 by dl, Tue Jan 6 14:30:58 2009 UTC vs.
Revision 1.8 by jsr166, Sun Jan 18 20:17:32 2015 UTC

# Line 1 | Line 1
1   /*
2   * Written by Doug Lea with assistance from members of JCP JSR-166
3   * Expert Group and released to the public domain, as explained at
4 < * http://creativecommons.org/licenses/publicdomain
4 > * http://creativecommons.org/publicdomain/zero/1.0/
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 ParallelLongArrayW
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 ParallelLongArray.
36       * @param firstIndex the lower bound (inclusive)
37       * @param upperBound the upper bound (exclusive)
# Line 41 | Line 42 | public abstract class ParallelLongArrayW
42  
43      /**
44       * Returns the index of some element equal to given target, or
45 <     * -1 if not present
45 >     * -1 if not present.
46       * @param target the element to search for
47       * @return the index or -1 if not present
48       */
# Line 77 | Line 78 | public abstract class ParallelLongArrayW
78      public abstract ParallelLongArrayWithBounds cumulate(LongReducer reducer, long 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 ParallelLongArrayWithBounds cumulateSum();
# Line 93 | Line 94 | public abstract class ParallelLongArrayW
94      public abstract long precumulate(LongReducer reducer, long 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 long precumulateSum();
# Line 113 | Line 114 | public abstract class ParallelLongArrayW
114       * Comparable. Unlike Arrays.sort, this sort does not
115       * guarantee that elements with equal keys maintain their relative
116       * position in the array.
116     * @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 ParallelLongArrayWithBounds sort();
121  
122   }
122

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines