mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8191429: List.sort should specify the sort is stable
Reviewed-by: smarks
This commit is contained in:
parent
d61c1efed9
commit
4c4d212355
1 changed files with 2 additions and 1 deletions
|
@ -442,7 +442,8 @@ public interface List<E> extends Collection<E> {
|
|||
|
||||
/**
|
||||
* Sorts this list according to the order induced by the specified
|
||||
* {@link Comparator}.
|
||||
* {@link Comparator}. The sort is <i>stable</i>: this method must not
|
||||
* reorder equal elements.
|
||||
*
|
||||
* <p>All elements in this list must be <i>mutually comparable</i> using the
|
||||
* specified comparator (that is, {@code c.compare(e1, e2)} must not throw
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue