How to cast List to List where T extends R?

前端 未结 0 509
后悔当初
后悔当初 2021-01-01 00:47

I want to cast a list of T into a list of R. The class T implements the interface R, but the cast is not allowed. What is the proper way to cast a list ?

impo         


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