Collection.remove

Removes a single instance of the specified element from this collection, if it is present (optional operation). More formally, removes an element <tt>e</tt> such that <tt>(o==null&nbsp;?&nbsp;e==null&nbsp;:&nbsp;o.equals(e))</tt>, if this collection contains one or more such elements. Returns <tt>true</tt> if this collection contained the specified element (or equivalently, if this collection changed as a result of the call).

@param o element to be removed from this collection, if present @return <tt>true</tt> if an element was removed as a result of this call @throws ClassCastException if the type of the specified element is incompatible with this collection (<a href="#optional-restrictions">optional</a>) @throws NullPointerException if the specified element is null and this collection does not permit null elements (<a href="#optional-restrictions">optional</a>) @throws UnsupportedOperationException if the <tt>remove</tt> operation is not supported by this collection

interface Collection(E)
bool
remove
(
E o
)

Meta