5 |
|
*/ |
6 |
|
|
7 |
|
package extra166y; |
8 |
+ |
|
9 |
|
import jsr166y.*; |
10 |
|
import static extra166y.Ops.*; |
11 |
|
import java.util.*; |
12 |
|
import java.util.concurrent.atomic.*; |
12 |
– |
import java.lang.reflect.Array; |
13 |
|
|
14 |
|
/** |
15 |
|
* A prefix view of ParallelLongArray that causes operations to apply |
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) |
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 |
|
* @return this (to simplify use in expressions) |
117 |
+ |
* @throws ClassCastException if any element is not Comparable |
118 |
|
*/ |
119 |
|
public abstract ParallelLongArrayWithBounds sort(); |
120 |
|
|