mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-01 09:04:15 +07:00
GitOrigin-RevId: 516bb8355466a6f994c30692e1432353885d8b04
15 lines
368 B
Java
15 lines
368 B
Java
import java.util.function.*;
|
|
import java.util.*;
|
|
|
|
class InlineTest {
|
|
Predicate<List<String>> getPredicate(String pivot) {
|
|
return list -> list != null && !has<caret>Greater(list, pivot);
|
|
}
|
|
|
|
<T extends Comparable<T>> boolean hasGreater(List<T> list, T pivot) {
|
|
for (T t : list) {
|
|
if (t.compareTo(pivot) > 0) return true;
|
|
}
|
|
return false;
|
|
}
|
|
} |