Adds an element to the end of the list.
The element to add.
Returns true if the list contains the specified element.
The element to check for.
True if the element is in the list, otherwise false.
Returns the index of the first occurrence of an element, or -1 if not found.
The element to search for.
The index of the element, or -1 if not found.
Inserts an element at a specific position in the list.
The position to insert the element.
The element to insert.
Removes the first occurrence of an element from the list.
The element to remove.
True if the element was removed, otherwise false.
Interface representing a generic List ADT.