5 |
|
*/ |
6 |
|
|
7 |
|
package extra166y; |
8 |
+ |
|
9 |
|
import jsr166y.*; |
10 |
|
import static extra166y.Ops.*; |
11 |
|
import java.util.*; |
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 ParallelArray. |
36 |
|
* @param firstIndex the lower bound (inclusive) |
37 |
|
* @param upperBound the upper bound (exclusive) |
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 |
|
*/ |
103 |
|
* guarantee that elements with equal keys maintain their relative |
104 |
|
* position in the array. |
105 |
|
* @return this (to simplify use in expressions) |
106 |
< |
* @throws ClassCastException if any element is not Comparable. |
106 |
> |
* @throws ClassCastException if any element is not Comparable |
107 |
|
*/ |
108 |
|
public abstract ParallelArrayWithBounds<T> sort(); |
109 |
|
} |