Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 GWT 中创建一个组合,该组合需要一个扩展类并实现接口的类。伪代码如下(它显然不起作用):
class GridRow<T extends Widget implements HasText> extends Composite{ //more codes here }
写成:
class GridRow<T extends Widget & HasText> extends Composite { // ... }
您可以拥有[class or interface]( & [interface])*(使用伪正则表达式语言)。
[class or interface]( & [interface])*