addAll method

  1. @override
void addAll (
  1. Map<K, V> other

Adds all key/value pairs of other to this map.

If a key of other is already in this map, its value is overwritten.

The operation is equivalent to doing this[key] = value for each key and associated value in other. It iterates over other, which must therefore not change during the iteration.


void addAll(Map<K, V> other) {
  if(other == null) return;
  for(MapEntry entry in other.entries)
    _items.add(JMapEntry(entry.key, entry.value));