How to type a method to return Primitive or Instance of passed Class?

后端 未结 0 587
迷失自我
迷失自我 2020-12-19 21:38

I have a generic class with a method that should return either primitives (in case a parameter is a wrapper object to a primitive type (e.g. Number)) or an instance of the c

相关标签:
回答
  • 消灭零回复
提交回复
热议问题