625 |
|
/** |
626 |
|
* Creates a new map with the same mappings as the given map. The |
627 |
|
* map is created with a capacity of twice the number of mappings in |
628 |
< |
* the given map or 11 (whichever is greater), and a default load factor. |
628 |
> |
* the given map or 11 (whichever is greater), and a default load factor |
629 |
> |
* and concurrencyLevel. |
630 |
|
* @param t the map |
631 |
|
*/ |
632 |
|
public ConcurrentHashMap(Map<? extends K, ? extends V> t) { |
864 |
|
* with the specified key, if the implementation supports |
865 |
|
* <tt>null</tt> values. |
866 |
|
* |
866 |
– |
* @throws UnsupportedOperationException if the <tt>put</tt> operation is |
867 |
– |
* not supported by this map. |
867 |
|
* @throws ClassCastException if the class of the specified key or value |
868 |
|
* prevents it from being stored in this map. |
869 |
|
* @throws NullPointerException if the specified key or value is |
994 |
|
* <tt>Set.remove</tt>, <tt>removeAll</tt>, <tt>retainAll</tt>, and |
995 |
|
* <tt>clear</tt> operations. It does not support the <tt>add</tt> or |
996 |
|
* <tt>addAll</tt> operations. |
997 |
< |
* The returned <tt>iterator</tt> is a "weakly consistent" iterator that |
997 |
> |
* The view's returned <tt>iterator</tt> is a "weakly consistent" iterator that |
998 |
|
* will never throw {@link java.util.ConcurrentModificationException}, |
999 |
|
* and guarantees to traverse elements as they existed upon |
1000 |
|
* construction of the iterator, and may (but is not guaranteed to) |
1016 |
|
* <tt>Iterator.remove</tt>, <tt>Collection.remove</tt>, |
1017 |
|
* <tt>removeAll</tt>, <tt>retainAll</tt>, and <tt>clear</tt> operations. |
1018 |
|
* It does not support the <tt>add</tt> or <tt>addAll</tt> operations. |
1019 |
< |
* The returned <tt>iterator</tt> is a "weakly consistent" iterator that |
1019 |
> |
* The view's returned <tt>iterator</tt> is a "weakly consistent" iterator that |
1020 |
|
* will never throw {@link java.util.ConcurrentModificationException}, |
1021 |
|
* and guarantees to traverse elements as they existed upon |
1022 |
|
* construction of the iterator, and may (but is not guaranteed to) |
1039 |
|
* <tt>Iterator.remove</tt>, <tt>Collection.remove</tt>, |
1040 |
|
* <tt>removeAll</tt>, <tt>retainAll</tt>, and <tt>clear</tt> operations. |
1041 |
|
* It does not support the <tt>add</tt> or <tt>addAll</tt> operations. |
1042 |
< |
* The returned <tt>iterator</tt> is a "weakly consistent" iterator that |
1042 |
> |
* The view's returned <tt>iterator</tt> is a "weakly consistent" iterator that |
1043 |
|
* will never throw {@link java.util.ConcurrentModificationException}, |
1044 |
|
* and guarantees to traverse elements as they existed upon |
1045 |
|
* construction of the iterator, and may (but is not guaranteed to) |