8314896: additional clarifications to reversed() default methods' implementation requirements

Reviewed-by: bchristi
This commit is contained in:
Stuart Marks 2023-10-11 16:42:28 +00:00
parent 2d46b29728
commit 3f6d01687c
4 changed files with 12 additions and 12 deletions

View file

@ -622,9 +622,9 @@ public interface Deque<E> extends Queue<E>, SequencedCollection<E> {
* to this Deque. Other operations on the view are implemented via calls to
* public methods on this Deque. The exact relationship between calls on the
* view and calls on this Deque is unspecified. However, order-sensitive
* operations generally delegate to the appropriate method with the opposite
* orientation. For example, calling {@code getFirst} on the view results in
* a call to {@code getLast} on this Deque.
* operations generally behave as if they delegate to the appropriate method
* with the opposite orientation. For example, calling {@code getFirst} on
* the view might result in a call to {@code getLast} on this Deque.
*
* @return a reverse-ordered view of this collection, as a {@code Deque}
* @since 21