是否有可能在java中创建这样的东西
public abstract class GenericView<LAYOUTTYPE extends AbstractLayout> extends LAYOUTTYPE
Run Code Online (Sandbox Code Playgroud)
以便
public class MyView extends GenericView<HorizontalLayout>
Run Code Online (Sandbox Code Playgroud)
延伸GenericView和HorizontalLayout和
public class MyView2 extends GenericView<VerticalLayout>
Run Code Online (Sandbox Code Playgroud)
延伸GenericView和VerticalLayout?