共用方式為


ArraySet.RetainAll(ICollection) 方法

定義

拿掉陣列集合<中不存在< b>/b> 的所有值存在於指定的集合中。

[Android.Runtime.Register("retainAll", "(Ljava/util/Collection;)Z", "", ApiSince=23)]
public bool RetainAll(System.Collections.ICollection? collection);
[<Android.Runtime.Register("retainAll", "(Ljava/util/Collection;)Z", "", ApiSince=23)>]
abstract member RetainAll : System.Collections.ICollection -> bool
override this.RetainAll : System.Collections.ICollection -> bool

參數

collection
ICollection

要用來判斷要保留之值的集合。

傳回

如果從數位集移除任何值,則傳回 true,否則傳回 false。

實作

屬性

備註

拿掉陣列集合<中不存在< b>/b> 的所有值存在於指定的集合中。

android.util.ArraySet.retainAll(java.util.Collection<?>)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於