What does <T extends mean?

后端 未结 7 1570
庸人自扰
庸人自扰 2020-12-12 22:00

I have seen a method like shown below:

protected  T save( T Acd, boolean en) {

What does it do? What is these type of

7条回答
  •  感动是毒
    2020-12-12 22:43

    This is a save method which excepts parameter T and boolean type where T must be upper bounded by ABC Class. ABC class or any subclass will be accepted.

提交回复
热议问题