I've got a class Foo<T>
. How can I say that I want T
to be some class implementing BarInterface
? Writing simply class Foo<T implements BarInterface>
doesn't compile.
Use extends
instead of implements
.
I've got a class Foo<T>
. How can I say that I want T
to be some class implementing BarInterface
? Writing simply class Foo<T implements BarInterface>
doesn't compile.
Use extends
instead of implements
.
上一篇:乡下豆腐乳?
精彩评论