1243 |
|
} |
1244 |
|
} |
1245 |
|
|
1246 |
+ |
/** |
1247 |
+ |
* Returns a {@link Spliterator} over the elements in this deque. |
1248 |
+ |
* |
1249 |
+ |
* <p>The {@code Spliterator} reports {@link Spliterator#CONCURRENT}, |
1250 |
+ |
* {@link Spliterator#ORDERED}, and {@link Spliterator#NONNULL}. |
1251 |
+ |
* |
1252 |
+ |
* @implNote |
1253 |
+ |
* The {@code Spliterator} implements {@code trySplit} to permit limited |
1254 |
+ |
* parallelism. |
1255 |
+ |
* |
1256 |
+ |
* @return a {@code Spliterator} over the elements in this deque |
1257 |
+ |
* @since 1.8 |
1258 |
+ |
*/ |
1259 |
|
public Spliterator<E> spliterator() { |
1260 |
|
return new LBDSpliterator<E>(this); |
1261 |
|
} |