| Constructor and Description |
|---|
StreamHelper() |
| Modifier and Type | Method and Description |
|---|---|
static <A,B> Stream<org.apache.commons.lang3.tuple.Pair<A,B>> |
zip(Stream<? extends A> a,
Stream<? extends B> b)
Zip two streams into a
Stream of Pairs. |
public static <A,B> Stream<org.apache.commons.lang3.tuple.Pair<A,B>> zip(Stream<? extends A> a, Stream<? extends B> b)
Stream of Pairs. Based on the code here:
http://stackoverflow.com/a/23529010 which in turn was based on
http://download.java.net/lambda/b93/docs/api/java/util/stream/Streams.htmla - The stream whose elements should go on the left of each pair.b - The stream whose elements should go on the right of each pair.Copyright © 2005–2016 Alfresco Software. All rights reserved.