What does > mean in Java?

后端 未结 2 1214
感动是毒
感动是毒 2021-02-10 09:44

I\'m creating an interface of JOOQ TableRecord

> 

Would anyone be able to explain the line above?

2条回答
  •  北恋
    北恋 (楼主)
    2021-02-10 10:45

    class SomeClass>
    

    What it means that parameter type R has to be a subclass of TableRecord and nothing else, i.e. you must use class

    class Foo extends TableRecord 
    

    as the parameter for defining your class SomeClass

提交回复
热议问题