String lambdaSource = """
import java.util.function.BiFunction;
public class LambdaContainer {
public static BiFunction<Integer, Integer, Integer> getLambda() {
return (x, y) -> x + y;
}
}
""";
CompilationResult compile = JavaCompiler.NATIVE.compile("LambdaContainer.java", lambdaSource);
This project is licensed under the GPLv2 with the classpath exception
. See the LICENSE file for details.