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.3 by jsr166, Wed Jul 4 20:13:53 2012 UTC vs.
Revision 1.6 by jsr166, Wed Jan 16 00:51:11 2013 UTC

# Line 28 | Line 28 | public abstract class ParallelLongArrayW
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 ParallelLongArray.
35       * @param firstIndex the lower bound (inclusive)
36       * @param upperBound the upper bound (exclusive)
# Line 41 | Line 41 | public abstract class ParallelLongArrayW
41  
42      /**
43       * Returns the index of some element equal to given target, or
44 <     * -1 if not present
44 >     * -1 if not present.
45       * @param target the element to search for
46       * @return the index or -1 if not present
47       */
# Line 77 | Line 77 | public abstract class ParallelLongArrayW
77      public abstract ParallelLongArrayWithBounds cumulate(LongReducer reducer, long base);
78  
79      /**
80 <     * Replaces each element with the running sum
80 >     * Replaces each element with the running sum.
81       * @return this (to simplify use in expressions)
82       */
83      public abstract ParallelLongArrayWithBounds cumulateSum();
# Line 93 | Line 93 | public abstract class ParallelLongArrayW
93      public abstract long precumulate(LongReducer reducer, long base);
94  
95      /**
96 <     * Replaces each element with its prefix sum
96 >     * Replaces each element with its prefix sum.
97       * @return the total sum
98       */
99      public abstract long precumulateSum();
# Line 113 | Line 113 | public abstract class ParallelLongArrayW
113       * Comparable. Unlike Arrays.sort, this sort does not
114       * guarantee that elements with equal keys maintain their relative
115       * position in the array.
116 <     * @throws ClassCastException if any element is not Comparable.
116 >     * @throws ClassCastException if any element is not Comparable
117       * @return this (to simplify use in expressions)
118       */
119      public abstract ParallelLongArrayWithBounds sort();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines