Collection.removeAll

Removes all of this collection's elements that are also contained in the specified collection (optional operation). After this call returns, this collection will contain no elements in common with the specified collection.

@param c collection containing elements to be removed from this collection @return <tt>true</tt> if this collection changed as a result of the call @throws UnsupportedOperationException if the <tt>removeAll</tt> method is not supported by this collection @throws ClassCastException if the types of one or more elements in this collection are incompatible with the specified collection (<a href="#optional-restrictions">optional</a>) @throws NullPointerException if this collection contains one or more null elements and the specified collection does not support null elements (<a href="#optional-restrictions">optional</a>), or if the specified collection is null @see #remove(Object) @see #contains(Object)

interface Collection(E)
bool
removeAll

Meta