mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-20 03:20:56 +07:00
17 lines
329 B
Java
17 lines
329 B
Java
// "Replace with lambda" "true-preview"
|
|
import java.util.function.Function;
|
|
|
|
class Test {
|
|
void ab() {
|
|
comparing(new Func<caret>tion<Integer, String>() {
|
|
public String apply(Integer pObj) {
|
|
return Integer.toString(pObj);
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
static <T> void comparing(Function<T, String> keyExtractor){}
|
|
|
|
}
|