java.util.Map翻译

2008-02-23 09:33:13来源:互联网 阅读 ()

新老客户大回馈,云服务器低至5折

<!-- if(window==top) { document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> All Classes SUMMARY: NESTED | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD Object value)
Associates the specified value with the specified key in this map (optional operation). If the map previously contained a mapping for this key, the old value is replaced by the specified value. (A map m is said to contain a mapping for a key k if and only if m.containsKey(k) would return true.)) 将指定key和指定值映射至map(可选操作)。如果map已包含该key的映射,用指定值替换旧值。 (只有当m.containsKey(k)返回true是,才可以说map m包含了key k的映射。)

Parameters:
key - key with which the specified value is to be associated. 要关联指定值的key。
value - value to be associated with the specified key. 要关联指定key的值。
Returns:
previous value associated with specified key, or null if there was no mapping for key. A null return can also indicate that the map previously associated null with the specified key, if the implementation supports null values. 与指定key关联的原值,如果没有此key的映射,返回null。如果实现支持null值的话, 返回null可能也表示map中指定key的原关联值为null。
Throws:
UnsupportedOperationException - if the put operation is not supported by this map. 如果当前map不支持put操作时抛出。
ClassCastException - if the class of the specified key or value prevents it from being stored in this map. 如果指定key或值的类型不允许其存入map时抛出。
IllegalArgumentException - if some ASPect of this key or value prevents it from being stored in this map. 如果指定key或值的某些方面不允许其存入map时抛出。
NullPointerException - this map does not permit null keys or values, and the specified key or value is null. 指定key或值为null,而map不允许null key或值时抛出。

<!-- if(window==top) { document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> All Classes SUMMARY: NESTED | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD 下一篇: osworkflow descriptor 解析 重要概念

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:Shark中的ToolAgent用法-JavaScriptToolAgent

下一篇:osworkflow descriptor 解析片断