Språk

JavaList.RetainAll(JavaList) Method

Definition

For each current element not contained in the supplied list, calls Remove for that element.

public virtual bool RetainAll(Android.Runtime.JavaList collection);
abstract member RetainAll : Android.Runtime.JavaList -> bool
override this.RetainAll : Android.Runtime.JavaList -> bool

Parameters

collection
JavaList

The list used to test which elements to retain.

Returns

true if a removal was attempted; otherwise, false.

Remarks

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