mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 00:20:54 +07:00
16 lines
322 B
Java
16 lines
322 B
Java
|
|
import java.util.Comparator;
|
|
|
|
class InlineLambda {
|
|
private static int compare(Integer i, Integer j) {
|
|
if (i > j) {
|
|
return 1;
|
|
}
|
|
if (j > i) {
|
|
return -1;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
private static Comparator<Integer> COMP = (o1, o2) -> com<caret>pare(o1, o2);
|
|
} |