<span style="font-size:14px;">
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html" rel="nofollow" title="class in java.lang" style="text-decoration:none;color:rgb(76,107,135);">java.lang.Object
<ul class="inheritance" style="list-style-type:disc;">
<li style="display:inline;list-style:none;">
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.html" rel="nofollow" title="class in java.util" style="text-decoration:none;color:rgb(76,135);">java.util.AbstractMap<K,V>
<li style="display:inline;list-style:none;">
<ul class="inheritance" style="list-style-type:disc;"><li style="display:inline;list-style:none;">java.util.HashMap<K,V>
方法来将其包裹在内。这最好在创建时就执行,以阻止发生一些不必要的事情:
<p style="font-family:Arial;">
ConcurrentModificationException异常。因此,写一个依赖此异常来判定其正确性的程序的想法是错误的:迭代器里的fail-fast
|
()
()
?instance: the keys and values themselves are not cloned.
(?key)
?if this map contains a mapping for the specified key.
(?value)
?if this map maps one or more keys to the specified value.
>
()
(?key)
?if this map contains no mapping for the key.
()
?if this map contains no key-value mappings.
()
(编辑:李大同)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|