com.lapissea.util.StreamUtil Maven / Gradle / Ivy
package com.lapissea.util;
import java.util.Arrays;
import java.util.function.BiFunction;
import java.util.stream.Stream;
public class StreamUtil{
public static Stream join1X(Arg2[] in, Arg1 arg1, BiFunction mapper){
return join1X(Arrays.stream(in), arg1, mapper);
}
public static Stream join1X(Stream in, Arg1 arg1, BiFunction mapper){
return in.map(arg2->mapper.apply(arg1, arg2));
}
public static Stream join1(In[] in, Arg1 arg1, BiFunction mapper){
return join1(Arrays.stream(in), arg1, mapper);
}
public static Stream join1(Stream in, Arg1 arg1, BiFunction mapper){
return in.map(in1->mapper.apply(in1, arg1));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy