A - Type of payload in first streamB - Type of payload in second streampublic class StreamCombiner<A,B> extends AbstractStream<IndependentPair<A,B>>
next() method waits to complete before returning| Constructor and Description |
|---|
StreamCombiner(Stream<A> a,
Stream<B> b) |
| Modifier and Type | Method and Description |
|---|---|
static <A,B> StreamCombiner<A,B> |
combine(Stream<A> a,
Stream<B> b)
Create a new
StreamCombiner from the given streams |
boolean |
hasNext() |
IndependentPair<A,B> |
next() |
filter, forEach, forEach, forEach, iterator, map, map, parallelForEach, parallelForEach, remove, transformclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingforEach, spliteratorpublic StreamCombiner(Stream<A> a, Stream<B> b)
a - b - public boolean hasNext()
public IndependentPair<A,B> next()
public static <A,B> StreamCombiner<A,B> combine(Stream<A> a, Stream<B> b)
StreamCombiner from the given streamsa - first streamb - second stream