mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 10:07:41 +07:00
15 lines
313 B
Plaintext
15 lines
313 B
Plaintext
import java.util.function.*;
|
|
import java.util.*;
|
|
|
|
class InlineTest {
|
|
Predicate<List<String>> getPredicate(String pivot) {
|
|
return list -> {
|
|
if (list == null) return false;
|
|
for (String t : list) {
|
|
if (t.compareTo(pivot) > 0) return false;
|
|
}
|
|
return true;
|
|
};
|
|
}
|
|
|
|
} |