containsKey


Description:

public bool containsKey (K key)

Returns whether the map contains the specified key.

Example:

    var map = new HashMap<string,string> (GLib.str_hash, GLib.str_equal);
map.put ("key", "value");
assert (map.containsKey ("key"));
assert (!map.containsKey ("other"));

Parameters:

key

the key to check.

Returns:

true if the key exists.