9 |
|
import java.util.AbstractCollection; |
10 |
|
import java.util.ArrayList; |
11 |
|
import java.util.Collection; |
12 |
– |
import java.util.ConcurrentModificationException; |
12 |
|
import java.util.Deque; |
13 |
|
import java.util.Iterator; |
14 |
|
import java.util.NoSuchElementException; |
1230 |
|
* Returns an iterator over the elements in this deque in proper sequence. |
1231 |
|
* The elements will be returned in order from first (head) to last (tail). |
1232 |
|
* |
1233 |
< |
* <p>The returned {@code Iterator} is a "weakly consistent" iterator that |
1233 |
> |
* <p>The returned iterator is a "weakly consistent" iterator that |
1234 |
|
* will never throw {@link java.util.ConcurrentModificationException |
1235 |
< |
* ConcurrentModificationException}, |
1236 |
< |
* and guarantees to traverse elements as they existed upon |
1237 |
< |
* construction of the iterator, and may (but is not guaranteed to) |
1238 |
< |
* reflect any modifications subsequent to construction. |
1235 |
> |
* ConcurrentModificationException}, and guarantees to traverse |
1236 |
> |
* elements as they existed upon construction of the iterator, and |
1237 |
> |
* may (but is not guaranteed to) reflect any modifications |
1238 |
> |
* subsequent to construction. |
1239 |
|
* |
1240 |
|
* @return an iterator over the elements in this deque in proper sequence |
1241 |
|
*/ |
1248 |
|
* sequential order. The elements will be returned in order from |
1249 |
|
* last (tail) to first (head). |
1250 |
|
* |
1251 |
< |
* <p>The returned {@code Iterator} is a "weakly consistent" iterator that |
1251 |
> |
* <p>The returned iterator is a "weakly consistent" iterator that |
1252 |
|
* will never throw {@link java.util.ConcurrentModificationException |
1253 |
< |
* ConcurrentModificationException}, |
1254 |
< |
* and guarantees to traverse elements as they existed upon |
1255 |
< |
* construction of the iterator, and may (but is not guaranteed to) |
1256 |
< |
* reflect any modifications subsequent to construction. |
1253 |
> |
* ConcurrentModificationException}, and guarantees to traverse |
1254 |
> |
* elements as they existed upon construction of the iterator, and |
1255 |
> |
* may (but is not guaranteed to) reflect any modifications |
1256 |
> |
* subsequent to construction. |
1257 |
|
* |
1258 |
|
* @return an iterator over the elements in this deque in reverse order |
1259 |
|
*/ |