993 |
|
} |
994 |
|
} |
995 |
|
|
996 |
+ |
/** |
997 |
+ |
* Returns a {@link Spliterator} over the elements in this queue. |
998 |
+ |
* |
999 |
+ |
* <p>The {@code Spliterator} reports {@link Spliterator#CONCURRENT}, |
1000 |
+ |
* {@link Spliterator#ORDERED}, and {@link Spliterator#NONNULL}. |
1001 |
+ |
* |
1002 |
+ |
* @implNote |
1003 |
+ |
* The {@code Spliterator} implements {@code trySplit} to permit limited |
1004 |
+ |
* parallelism. |
1005 |
+ |
* |
1006 |
+ |
* @return a {@code Spliterator} over the elements in this queue |
1007 |
+ |
* @since 1.8 |
1008 |
+ |
*/ |
1009 |
|
public Spliterator<E> spliterator() { |
1010 |
|
return new LTQSpliterator<E>(this); |
1011 |
|
} |