Unless otherwise stated, streams are created as sequential streams. A
sequential stream can be transformed into a parallel stream by calling the
parallel() method on the created stream.
| Modifier and Type | Class and Description |
|---|---|
| private abstract static class | |
| pack-priv abstract static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | Streams.
An |
| pack-priv static class | Streams.
A |
| pack-priv static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Runnable | composedClose(BaseStream<?, ?> a, BaseStream<?, ?> b)
Given two streams, return a Runnable that
executes both of their |
| pack-priv static Runnable | composeWithExceptions(Runnable a, Runnable b)
Given two Runnables, return a Runnable that executes both in sequence, even if the first throws an exception, and if both throw exceptions, add any exceptions thrown by the second as suppressed exceptions of the first. |