Added tests with mixture of SAM and non-SAM parameters.

This commit is contained in:
Evgeny Gerashchenko
2013-04-16 22:45:48 +04:00
parent 7bd11718de
commit e554228a73
6 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
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;
}
}