@@ -0,0 +1,1483 @@
+package innovimax.mixthem.utils;%0A%0Aimport java.util.function.Consumer;%0Aimport java.util.function.Function;%0Aimport java.util.function.Predicate;%0Aimport java.util.function.ToIntFunction;%0A%0Apublic class StreamUtils %7B%0A%0A%09static public %3CT, E extends Exception%3E%0A    %09%09Consumer%3CT%3E consume(ConsumerWithException%3CT, E%3E ce) %7B%0A        %09%09return arg -%3E %7B%0A            %09%09%09try %7B%0A                %09%09%09ce.apply(arg);%0A            %09%09%09%7D catch (Exception e) %7B%0A                %09%09%09throw new RuntimeException(e);%0A            %09%09%09%7D%0A        %09%09%7D;%0A%09%7D %0A%0A%09static public %3CT, E extends Exception%3E%0A    %09%09Predicate%3CT%3E test(PredicateWithException%3CT, E%3E pe) %7B%0A        %09%09return arg -%3E %7B%0A            %09%09%09try %7B%0A                %09%09%09return pe.test(arg);%0A            %09%09%09%7D catch (Exception e) %7B%0A                %09%09%09throw new RuntimeException(e);%0A            %09%09%09%7D%0A        %09%09%7D;%0A%09%7D %0A%0A%09static public %3CT, R, E extends Exception%3E%0A    %09%09Function%3CT, R%3E apply(FunctionWithException%3CT, R, E%3E fe) %7B%0A        %09%09return arg -%3E %7B%0A            %09%09%09try %7B%0A                %09%09%09return fe.apply(arg);%0A            %09%09%09%7D catch (Exception e) %7B%0A                %09%09%09throw new RuntimeException(e);%0A            %09%09%09%7D%0A        %09%09%7D;%0A%09%7D %0A%0A%09static public %3CT, E extends Exception%3E%0A    %09%09ToIntFunction%3CT%3E applyAsInt(ToIntFunctionWithException%3CT, E%3E tife) %7B%0A        %09%09return arg -%3E %7B%0A            %09%09%09try %7B%0A                %09%09%09return tife.applyAsInt(arg);%0A            %09%09%09%7D catch (Exception e) %7B%0A                %09%09%09throw new RuntimeException(e);%0A            %09%09%09%7D%0A        %09%09%7D;%0A%09%7D %0A%0A%7D%0A

Add stream utils to use new functionnal interfaces