8 |
|
import java.util.Spliterator; |
9 |
|
import java.util.stream.Stream; |
10 |
|
import java.util.stream.Streams; |
11 |
< |
import java.util.function.Block; |
11 |
> |
import java.util.function.Consumer; |
12 |
|
|
13 |
|
/** |
14 |
|
* Resizable-array implementation of the {@link Deque} interface. Array |
881 |
|
return null; |
882 |
|
} |
883 |
|
|
884 |
< |
public void forEach(Block<? super E> block) { |
884 |
> |
public void forEach(Consumer<? super E> block) { |
885 |
|
if (block == null) |
886 |
|
throw new NullPointerException(); |
887 |
|
Object[] a = deq.elements; |
896 |
|
} |
897 |
|
} |
898 |
|
|
899 |
< |
public boolean tryAdvance(Block<? super E> block) { |
899 |
> |
public boolean tryAdvance(Consumer<? super E> block) { |
900 |
|
if (block == null) |
901 |
|
throw new NullPointerException(); |
902 |
|
Object[] a = deq.elements; |