Is it possible to constraint a method so that it receives only int, double, long or other numerical types that has the usual numerical operations ( such as +,-,*,/) defined?
Is it possible to constraint a method so that it receives only int ,
Share
This is not possible currently.
Also, see this question for a possible workaround