mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
13 lines
399 B
Java
13 lines
399 B
Java
// "Wrap using 'String.valueOf()'" "false"
|
|
import java.util.function.Predicate;
|
|
import java.util.function.Supplier;
|
|
|
|
class X {
|
|
public static String getOrDefault(String prefer, Supplier<String> def) {
|
|
return getOrDefault(() -> prefer, String::isEmpty, def<caret>.get());
|
|
}
|
|
|
|
public static <T> T getOrDefault(Supplier<T> prefer, Predicate<T> abandon, Supplier<T> def) {
|
|
return null;
|
|
}
|
|
} |