語言

ArrayMap.RetainAll(ICollection<Object>) 方法

定義

移除陣列映射中所有在該集合中不存在 <b>< 或 b> 的鍵值。

[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

參數

collection
ICollection<Object>

該集合的內容用來決定應保留哪些金鑰。

傳回

若有鍵從陣列映射中移除,則回傳 true,否則為 false。

屬性

備註

移除陣列映射中所有在該集合中不存在 <b>< 或 b> 的鍵值。

Java 文件 android.util.ArrayMap.retainAll(java.util.Collection<?>)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於