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; |
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 |
|
*/ |
102 |
|
* guarantee that elements with equal keys maintain their relative |
103 |
|
* position in the array. |
104 |
|
* @return this (to simplify use in expressions) |
105 |
< |
* @throws ClassCastException if any element is not Comparable. |
105 |
> |
* @throws ClassCastException if any element is not Comparable |
106 |
|
*/ |
107 |
|
public abstract ParallelArrayWithBounds<T> sort(); |
108 |
|
} |
109 |
– |
|