T - Type of items in the streams being combinedpublic class RoundRobinStreamCombiner<T> extends AbstractStream<T>
List of streams of a given type, present a stream of that
type which asks each stream in the List for an item in turn. If any
stream in the List says it has no item, this Stream will
report it has no item and likely stop processing all streams. The specifics
of this behaviour are that if when it comes to a stream's turn to provide an
item it fails to do so, all the streams will stop being asked simultaneously.| Constructor and Description |
|---|
RoundRobinStreamCombiner(List<Stream<T>> streams)
Construct with the given streams.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
T |
next() |
filter, forEach, forEach, forEach, iterator, map, map, parallelForEach, parallelForEach, remove, transformclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingforEach, spliteratorpublic RoundRobinStreamCombiner(List<Stream<T>> streams)
streams - the streams to consume