/** * Remove from this collection all of its elements that are contained * in the specified collection. * * @param collection Collection containing elements to be removed * * @exception UnsupportedOperationException if this optional operation * is not supported by this list */ public override bool removeAll(java.util.Collection <Object> collection) { if (fast) { lock (this) { java.util.ArrayList <Object> temp = (java.util.ArrayList <Object>)list.clone(); bool result = temp.removeAll(collection); list = temp; return(result); } } else { lock (list) { return(list.removeAll(collection)); } } }