451 |
|
* this queue |
452 |
|
* @throws NullPointerException if the specified array is null |
453 |
|
*/ |
454 |
+ |
@SuppressWarnings("unchecked") |
455 |
|
public <T> T[] toArray(T[] a) { |
456 |
|
if (a.length < size) |
457 |
|
// Make a new array of a's runtime type, but my contents: |
786 |
|
// wrapping constructor in method avoids transient javac problems |
787 |
|
final PriorityQueueSpliterator<E> spliterator(int origin, int fence, |
788 |
|
int expectedModCount) { |
789 |
< |
return new PriorityQueueSpliterator(this, origin, fence, |
790 |
< |
expectedModCount); |
789 |
> |
return new PriorityQueueSpliterator<E>(this, origin, fence, |
790 |
> |
expectedModCount); |
791 |
|
} |
792 |
|
|
793 |
|
public Stream<E> stream() { |