26 |
|
package java.util; |
27 |
|
import java.util.function.Consumer; |
28 |
|
import java.util.stream.Stream; |
29 |
– |
import java.util.stream.Streams; |
29 |
|
|
30 |
|
/** |
31 |
|
* An unbounded priority {@linkplain Queue queue} based on a priority heap. |
822 |
|
} |
823 |
|
|
824 |
|
@SuppressWarnings("unchecked") |
825 |
< |
public void forEach(Consumer<? super E> action) { |
825 |
> |
public void forEachRemaining(Consumer<? super E> action) { |
826 |
|
int i, hi, mc; // hoist accesses and checks from loop |
827 |
|
PriorityQueue<E> q; Object[] a; |
828 |
|
if (action == null) |