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 returningConstructor 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, transform
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
forEach, spliterator
public 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