Knowing type of generic in Java

后端 未结 7 1148
醉话见心
醉话见心 2020-12-03 16:17

I have a generic class, says :

MyClass

Inside a method of this class, I would like to test the type of T, for example :

         


        
7条回答
提交回复
热议问题