Java generics to enforce return type of abstract method

前端 未结 5 1968
既然无缘
既然无缘 2020-12-17 18:59

I have the following situation :

abstract class X { abstract X someMethod (...) {...} }.

Now I want to constrain any implementation of X to

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