8191429: List.sort should specify the sort is stable
Reviewed-by: smarks
This commit is contained in:
parent
d61c1efed9
commit
4c4d212355
@ -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…
x
Reference in New Issue
Block a user