merge


Description:

public void merge (HashMap<K,V> other)

Copies all entries from the other map into this map. Existing keys are overwritten.

Example:

    var map1 = new HashMap<string,string> (GLib.str_hash, GLib.str_equal);
map1.put ("a", "1");
var map2 = new HashMap<string,string> (GLib.str_hash, GLib.str_equal);
map2.put ("b", "2");
map1.merge (map2);
assert (map1.size () == 2);

Parameters:

other

the map to merge from.