介绍 定义简单的泛型 泛型和子类继承 通配符(Wildcards) 有限制的通配符 ( Bounded Wildcards ) 泛型方法 与旧代码交互 在泛型代码中使用老代码 擦除和翻译(Erasure and Translation) 在老代码中使用泛型代码 要点(The Fine ...
基于138个网页-相关网页
bounded wildcards
有界通配符
以上为机器翻译结果,长、整句建议使用 人工翻译 。
Keep bounded wildcards out of return values.
不要对返回值使用通配符。
youdao
Bounded wildcards work best when they are used in APIs, not in client code.
有界通配符最适合用于API,而不是客户机代码。
Bounded wildcards are extremely useful in making generic APIs more flexible.
有界通配符对于提高泛型api的灵活性极其有用。
应用推荐
模块上移
模块下移
不移动