JavaPatternMatching/resources/bytecode/javFiles/FunctionalInterface.jav

15 lines
296 B
Plaintext
Raw Normal View History

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