java - How to restrict types which are allowed as "T" in a generic class? -


I have a class foo & lt; T & gt; How can I say that I want to T to apply some class to BarInterface ? Just square fu & lt; Write T BarInterface & gt; does not compile.

use extended instead of extension .


Comments