360 |
|
} |
361 |
|
|
362 |
|
public Stream<E> stream() { |
363 |
< |
int flags = Streams.STREAM_IS_ORDERED | Streams.STREAM_IS_SIZED | |
363 |
> |
int flags = Streams.STREAM_IS_ORDERED | Streams.STREAM_IS_SIZED | |
364 |
|
Streams.STREAM_IS_DISTINCT; |
365 |
|
Object[] a = al.getArray(); |
366 |
|
int n = a.length; |
368 |
|
(() -> new CopyOnWriteArrayList.COWSpliterator<E>(a, 0, n), flags); |
369 |
|
} |
370 |
|
public Stream<E> parallelStream() { |
371 |
< |
int flags = Streams.STREAM_IS_ORDERED | Streams.STREAM_IS_SIZED | |
371 |
> |
int flags = Streams.STREAM_IS_ORDERED | Streams.STREAM_IS_SIZED | |
372 |
|
Streams.STREAM_IS_DISTINCT; |
373 |
|
Object[] a = al.getArray(); |
374 |
|
int n = a.length; |