Package it.tidalwave.util
Class StreamUtils
- java.lang.Object
-
- it.tidalwave.util.StreamUtils
-
public final class StreamUtils extends java.lang.Object
A collection of operations onStream
s.- Since:
- 3.2-ALPHA-12
- Author:
- Fabrizio Giudici
- Status: draft API
-
-
Constructor Summary
Constructors Constructor Description StreamUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <A,B,R>
java.util.stream.Stream<R>zip(java.util.stream.Stream<? extends A> streamA, java.util.stream.Stream<? extends B> streamB, java.util.function.BiFunction<? super A,? super B,? extends R> zipper)
Zips two streams.
-
-
-
Method Detail
-
zip
@Nonnull public static <A,B,R> java.util.stream.Stream<R> zip(@Nonnull java.util.stream.Stream<? extends A> streamA, @Nonnull java.util.stream.Stream<? extends B> streamB, @Nonnull java.util.function.BiFunction<? super A,? super B,? extends R> zipper)
Zips two streams.- Type Parameters:
A
- the type of elements of the firstStream
B
- the type of elements of the secondStream
R
- the type of elements of the zippedStream
- Parameters:
streamA
- the firstStream
streamB
- the secondStream
zipper
- the zipping function- Returns:
- the zipped
Stream
- Since:
- 3.2-ALPHA-12
-
-