mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 19:21:16 +07:00
11 lines
253 B
Java
11 lines
253 B
Java
import java.math.BigInteger;
|
|
import java.util.function.Function;
|
|
|
|
class Test {
|
|
long test(Object obj) {
|
|
if (obj instanceof Integer || obj instanceof Long || obj instanceof String) {
|
|
((Comparable<?>) obj).compareTo()
|
|
}
|
|
return -1;
|
|
}
|
|
} |