Package org.icij.datashare.function
Class Functions
- java.lang.Object
-
- org.icij.datashare.function.Functions
-
public class Functions extends Object
Utility functions Created by julien on 7/12/16.
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.function.Function<String,String>capitalizestatic java.util.function.Function<String,Language>parseLanguage
-
Constructor Summary
Constructors Constructor Description Functions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <A,B,C>
java.util.stream.Stream<C>zip(java.util.stream.Stream<? extends A> a, java.util.stream.Stream<? extends B> b, java.util.function.BiFunction<? super A,? super B,? extends C> zipper)Zip Streamsaandbwithzipperhttp://stackoverflow.com/questions/17640754/zipping-streams-using-jdk8-with-lambda-java-util-stream-streams-zip
-
-
-
Method Detail
-
zip
public static <A,B,C> java.util.stream.Stream<C> zip(java.util.stream.Stream<? extends A> a, java.util.stream.Stream<? extends B> b, java.util.function.BiFunction<? super A,? super B,? extends C> zipper)Zip Streamsaandbwithzipperhttp://stackoverflow.com/questions/17640754/zipping-streams-using-jdk8-with-lambda-java-util-stream-streams-zip- Type Parameters:
A- the type of first streamB- the type of second streamC- the combined type- Parameters:
a- the first streamb- the second streamzipper- the streams combining- Returns:
- a Stream of type C
-
-