CopyOnWriteArrayList.RetainAll(ICollection) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retains only the elements in this list that are contained in the specified collection.
[Android.Runtime.Register("retainAll", "(Ljava/util/Collection;)Z", "GetRetainAll_Ljava_util_Collection_Handler")]
public virtual bool RetainAll (System.Collections.ICollection c);
[<Android.Runtime.Register("retainAll", "(Ljava/util/Collection;)Z", "GetRetainAll_Ljava_util_Collection_Handler")>]
abstract member RetainAll : System.Collections.ICollection -> bool
override this.RetainAll : System.Collections.ICollection -> bool
Parameters
collection containing elements to be retained in this list
Returns
true
if this list changed as a result of the call
Implements
- Attributes
Remarks
Retains only the elements in this list that are contained in the specified collection. In other words, removes from this list all of its elements that are not contained in the specified collection.
Java documentation for java.util.concurrent.CopyOnWriteArrayList.retainAll(java.util.Collection<?>)
.
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.