MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / putAll

Method putAll

vm/JavaAPI/src/java/util/TreeMap.java:4793–4800  ·  view source on GitHub ↗

Copies all the mappings in the given map to this map. These mappings will replace all mappings that this map had for any of the keys currently in the given map. @param map the map to copy mappings from. @throws ClassCastException if a key in the specified map cannot be compar

(Map<? extends K, ? extends V> map)

Source from the content-addressed store, hash-verified

4791 * comparator cannot handle {@code null} keys.
4792 */
4793 @Override
4794 public void putAll(Map<? extends K, ? extends V> map) {
4795 Iterator it = map.entrySet().iterator();
4796 while(it.hasNext()) {
4797 Map.Entry<? extends K, ? extends V> entry = (Map.Entry<? extends K, ? extends V>)it.next();
4798 this.putImpl(entry.getKey(), entry.getValue());
4799 }
4800 }
4801
4802 /**
4803 * Removes the mapping with the specified key from this map.

Callers 2

sortMethod · 0.95
TreeMapMethod · 0.95

Calls 7

hasNextMethod · 0.95
nextMethod · 0.95
putImplMethod · 0.95
iteratorMethod · 0.65
entrySetMethod · 0.65
getKeyMethod · 0.65
getValueMethod · 0.65

Tested by

no test coverage detected