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

View File

@ -891,9 +891,9 @@ public interface List<E> extends SequencedCollection<E> {
* to this List. Other operations on the view are implemented via calls to
* public methods on this List. The exact relationship between calls on the
* view and calls on this List 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 List.
* 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 List.
*
* @return a reverse-ordered view of this collection, as a {@code List}
* @since 21

View File

@ -321,9 +321,9 @@ public interface SortedMap<K,V> extends SequencedMap<K,V> {
* to this SortedMap. Other operations on the view are implemented via calls to
* public methods on this SortedMap. The exact relationship between calls on the
* view and calls on this SortedMap is unspecified. However, order-sensitive
* operations generally delegate to the appropriate method with the opposite
* orientation. For example, calling {@code firstEntry} on the view results in
* a call to {@code lastEntry} on this SortedMap.
* operations generally behave as if they delegate to the appropriate method
* with the opposite orientation. For example, calling {@code firstEntry} on
* the view might result in a call to {@code lastEntry} on this SortedMap.
*
* @return a reverse-ordered view of this map, as a {@code SortedMap}
* @since 21

View File

@ -365,9 +365,9 @@ public interface SortedSet<E> extends Set<E>, SequencedSet<E> {
* to this SortedSet. Other operations on the view are implemented via calls to
* public methods on this SortedSet. The exact relationship between calls on the
* view and calls on this SortedSet 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 SortedSet.
* 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 SortedSet.
*
* @return a reverse-ordered view of this collection, as a {@code SortedSet}
* @since 21