functionalj.stream.StreamProcessor Maven / Gradle / Ivy
package functionalj.stream;
import functionalj.function.Func1;
import lombok.val;
public interface StreamProcessor {
public static StreamProcessor from(Func1, T> mapper) {
return s -> mapper.apply(s);
}
public TARGET process(StreamPlus stream);
default