Java Enum definition

后端 未结 7 559
孤独总比滥情好
孤独总比滥情好 2020-11-22 17:24

I thought I understood Java generics pretty well, but then I came across the following in java.lang.Enum:

class Enum>
         


        
7条回答
  •  逝去的感伤
    2020-11-22 17:31

    You are not the only one wondering what that means; see Chaotic Java blog.

    “If a class extends this class, it should pass a parameter E. The parameter E’s bounds are for a class which extends this class with the same parameter E”.

提交回复
热议问题