contains


Description:

public bool contains (T element)

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"));

Parameters:

element

the element to search for.

Returns:

true if the element is found.