✔ 最佳答案
No. The compiled byte code for those methods will expect actual primitive int values.
You could overload those methods, making copies that accept double or float arguments. That could work for static methods but is unlikely to work well with instance methods. Your copies would have to be changed every time the original int methods changed, though, so I d look at least twice for another solution before creating a dual maintenance situation.
Java generics won t help, either--not if you do any arithmetic or comparisons. You can t "unbox" a generic wrapper back into an unknown primitive type.