Class Functions


  • public class Functions
    extends Object
    Utility functions Created by julien on 7/12/16.
    • 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 Streams a and b with zipper http://stackoverflow.com/questions/17640754/zipping-streams-using-jdk8-with-lambda-java-util-stream-streams-zip
    • Field Detail

      • capitalize

        public static final java.util.function.Function<String,​String> capitalize
      • parseLanguage

        public static final java.util.function.Function<String,​Language> parseLanguage
    • Constructor Detail

      • Functions

        public Functions()
    • 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 Streams a and b with zipper http://stackoverflow.com/questions/17640754/zipping-streams-using-jdk8-with-lambda-java-util-stream-streams-zip
        Type Parameters:
        A - the type of first stream
        B - the type of second stream
        C - the combined type
        Parameters:
        a - the first stream
        b - the second stream
        zipper - the streams combining
        Returns:
        a Stream of type C