mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 21:50:54 +07:00
24 lines
436 B
Plaintext
24 lines
436 B
Plaintext
|
|
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) -> {
|
|
if (o1 > o2) {
|
|
return 1;
|
|
}
|
|
if (o2 > o1) {
|
|
return -1;
|
|
}
|
|
return 0;
|
|
};
|
|
} |