Returns whether the list contains the specified element. Uses the equality function provided in the constructor, or pointer equality if none was provided.
Example:
var list = new ArrayList<string> (GLib.str_equal);
list.add ("hello");
assert (list.contains ("hello"));
assert (!list.contains ("world"));
| element |
the element to search for. |
|
true if the element is found. |