mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 12:20:55 +07:00
17 lines
545 B
Java
17 lines
545 B
Java
import java.math.BigInteger;
|
|
import java.util.function.Function;
|
|
|
|
class Test {
|
|
private static boolean instanceOfAfterFunction(Integer lambda,
|
|
Function<Integer, Number> replacer, Object type) {
|
|
Number function = replacer.apply(lambda);
|
|
if (function instanceof BigInteger && ((BigInteger)function).bitCount() > 0) {
|
|
return false;
|
|
}
|
|
if (type instanceof String && type.subst<caret>) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
} |