985 |
|
} |
986 |
|
} |
987 |
|
|
988 |
+ |
/** |
989 |
+ |
* Returns a {@link Spliterator} over the elements in this queue. |
990 |
+ |
* |
991 |
+ |
* <p>The {@code Spliterator} reports {@link Spliterator#SIZED} and |
992 |
+ |
* {@link Spliterator#NONNULL}. |
993 |
+ |
* |
994 |
+ |
* @implNote |
995 |
+ |
* The {@code Spliterator} additionally reports {@link Spliterator#SUBSIZED}. |
996 |
+ |
* |
997 |
+ |
* @return a {@code Spliterator} over the elements in this queue |
998 |
+ |
* @since 1.8 |
999 |
+ |
*/ |
1000 |
|
public Spliterator<E> spliterator() { |
1001 |
|
return new PBQSpliterator<E>(this, null, 0, -1); |
1002 |
|
} |