阅读背景:

为什么Java enum常量不能具有泛型类型参数?

来源:互联网 

Java enums are great. So are generics. Of course we all know the limitations of the latter because of type erasure. But there is one thing I don't understand, Why can't I create an enum like this:Java enums are great. So are generics. Of cours




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: