Returns whether the set contains the specified element.
Example:
var set = new HashSet<string> (GLib.str_hash, GLib.str_equal);
set.add ("apple");
assert (set.contains ("apple"));
assert (!set.contains ("banana"));
| element |
the element to check. |
|
true if the element is in the set. |