Java – get the class name with generic information

In the Java serialization problem, I want to save some class names. I have some problems with generic classes

Any ideas on how to do this? Damian

Solution

>The situation you describe doesn't work. You may do listtodump getClass(). getName()

>If you describe the problem you want to solve in detail, we may suggest you use some solutions or even solutions Type erasure shouldn't be a big problem, it just changes the way you do something

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>