mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 13:20:56 +07:00
11 lines
250 B
Java
11 lines
250 B
Java
import java.util.function.Predicate;
|
|
class Foo {
|
|
Predicate<String> test(int i) {
|
|
return switch (i) {
|
|
default -> {
|
|
final Predicate<String> p = String::isEmpty;
|
|
yield p;
|
|
}
|
|
};
|
|
}
|
|
} |