mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
10 lines
287 B
Java
Vendored
10 lines
287 B
Java
Vendored
import java.util.*;
|
|
|
|
class JavaClass {
|
|
public static String findMaxAndInvokeCallback(Comparator<String> comparator, String a, String b, Runnable afterRunnable) {
|
|
int compare = comparator.compare(a, b);
|
|
afterRunnable.run();
|
|
return compare > 0 ? a : b;
|
|
}
|
|
}
|