mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8266571: Sequenced Collections
Reviewed-by: alanb
This commit is contained in:
parent
bad6aa68e4
commit
17ce0976e4
42 changed files with 7060 additions and 150 deletions
|
@ -331,6 +331,11 @@ class ImmutableCollections {
|
|||
return indexOf(o) >= 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<E> reversed() {
|
||||
return ReverseOrderListView.of(this, false);
|
||||
}
|
||||
|
||||
IndexOutOfBoundsException outOfBounds(int index) {
|
||||
return new IndexOutOfBoundsException("Index: " + index + " Size: " + size());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue