Language

AbstractCollection.RemoveAll(ICollection) Method

Definition

Removes all of this collection's elements that are also contained in the specified collection (optional operation).

[Android.Runtime.Register("removeAll", "(Ljava/util/Collection;)Z", "GetRemoveAll_Ljava_util_Collection_Handler")]
public virtual bool RemoveAll(System.Collections.ICollection c);
[<Android.Runtime.Register("removeAll", "(Ljava/util/Collection;)Z", "GetRemoveAll_Ljava_util_Collection_Handler")>]
abstract member RemoveAll : System.Collections.ICollection -> bool
override this.RemoveAll : System.Collections.ICollection -> bool

Parameters

c
ICollection

collection containing elements to be removed from this collection

Returns

true if this collection changed as a result of the call

Implements

Attributes

Remarks

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.

Java documentation for java.util.AbstractCollection.removeAll(java.util.Collection<?>).

Java reference for java.util.AbstractCollection.removeAll.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to