GeezerVison is showing docs.oracle.com — BaseStream (Java Platform SE 8 )
Java™ Platform Standard Ed. 8
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
compact1, compact2, compact3
java.util.stream
Interface BaseStream<T,S extends BaseStream<T,S>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods
| Modifier and Type |
Method |
Description |
void |
close() |
Closes this stream, causing all close handlers for this stream pipeline
to be called.
|
boolean |
isParallel() |
Returns whether this stream, if a terminal operation were to be executed,
would execute in parallel.
|
Iterator<T> |
iterator() |
Returns an iterator for the elements of this stream.
|
S |
onClose(Runnable closeHandler) |
Returns an equivalent stream with an additional close handler.
|
S |
parallel() |
Returns an equivalent stream that is parallel.
|
S |
sequential() |
Returns an equivalent stream that is sequential.
|
Spliterator<T> |
spliterator() |
Returns a spliterator for the elements of this stream.
|
S |
unordered() |
Returns an equivalent stream that is
unordered.
|
-
-
Method Detail
-
iterator
Iterator<T> iterator()
- Returns:
- the element iterator for this stream
-
isParallel
boolean isParallel()
Returns whether this stream, if a terminal operation were to be executed,
would execute in parallel. Calling this method after invoking an
terminal stream operation method may yield unpredictable results.
- Returns:
true if this stream would execute in parallel if executed
-
sequential
S sequential()
Returns an equivalent stream that is sequential. May return
itself, either because the stream was already sequential, or because
the underlying stream state was modified to be sequential.
This is an intermediate
operation.
- Returns:
- a sequential stream
-
parallel
S parallel()
Returns an equivalent stream that is parallel. May return
itself, either because the stream was already parallel, or because
the underlying stream state was modified to be parallel.
This is an intermediate
operation.
- Returns:
- a parallel stream
-
unordered
S unordered()
Returns an equivalent stream that is
unordered. May return
itself, either because the stream was already unordered, or because
the underlying stream state was modified to be unordered.
This is an intermediate
operation.
- Returns:
- an unordered stream
Java™ Platform Standard Ed. 8
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
Submit a bug or feature For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
|