899 |
|
* @param m mappings to be stored in this map |
900 |
|
*/ |
901 |
|
public void putAll(Map<? extends K, ? extends V> m) { |
902 |
< |
for (Iterator<? extends Map.Entry<? extends K, ? extends V>> it = (Iterator<? extends Map.Entry<? extends K, ? extends V>>) m.entrySet().iterator(); it.hasNext(); ) { |
903 |
< |
Entry<? extends K, ? extends V> e = it.next(); |
902 |
> |
for (Map.Entry<? extends K, ? extends V> e : m.entrySet()) |
903 |
|
put(e.getKey(), e.getValue()); |
905 |
– |
} |
904 |
|
} |
905 |
|
|
906 |
|
/** |
909 |
|
* |
910 |
|
* @param key the key that needs to be removed |
911 |
|
* @return the previous value associated with <tt>key</tt>, or |
912 |
< |
* <tt>null</tt> if there was no mapping for <tt>key</tt>. |
912 |
> |
* <tt>null</tt> if there was no mapping for <tt>key</tt> |
913 |
|
* @throws NullPointerException if the specified key is null |
914 |
|
*/ |
915 |
|
public V remove(Object key) { |
916 |
< |
int hash = hash(key); |
916 |
> |
int hash = hash(key); |
917 |
|
return segmentFor(hash).remove(key, hash, null); |
918 |
|
} |
919 |
|
|