Share via


ArrayMap.RetainAll(ICollection<Object>) Method

Definition

Remove all keys in the array map that do <b>not</b> exist in the given collection.

[Android.Runtime.Register("retainAll", "(Ljava/util/Collection;)Z", "")]
public bool RetainAll (System.Collections.Generic.ICollection<object>? collection);
[<Android.Runtime.Register("retainAll", "(Ljava/util/Collection;)Z", "")>]
member this.RetainAll : System.Collections.Generic.ICollection<obj> -> bool

Parameters

collection
ICollection<Object>

The collection whose contents are to be used to determine which keys to keep.

Returns

Returns true if any keys were removed from the array map, else false.

Attributes

Remarks

Remove all keys in the array map that do <b>not</b> exist in the given collection.

Java documentation for android.util.ArrayMap.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.

Applies to