JavaCompilerCore/resources/bytecode/javFiles/FunctionalInterface.jav

15 lines
303 B
Plaintext
Raw Normal View History

2023-10-27 14:27:47 +02:00
import java.lang.Integer;
import java.util.function.Function;
public class FunctionalInterface {
Integer accept(Function<Integer, Integer> f) {
return f.apply(20);
}
2024-03-14 13:50:56 +01:00
public Integer m() {
2023-10-27 14:27:47 +02:00
var v = accept(i -> {
return i * 10;
});
return v;
}
}