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?
This is not possible currently.
Also, see this question for a possible workaround
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With