Megosztás a következőn keresztül:


ISet.AddAll(ICollection) Method

Definition

Adds all of the elements in the specified collection to this set if they're not already present (optional operation).

[Android.Runtime.Register("addAll", "(Ljava/util/Collection;)Z", "GetAddAll_Ljava_util_Collection_Handler:Java.Util.ISetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool AddAll (System.Collections.ICollection c);
[<Android.Runtime.Register("addAll", "(Ljava/util/Collection;)Z", "GetAddAll_Ljava_util_Collection_Handler:Java.Util.ISetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member AddAll : System.Collections.ICollection -> bool

Parameters

c
ICollection

collection containing elements to be added to this set

Returns

true if this set changed as a result of the call

Implements

Attributes

Remarks

Adds all of the elements in the specified collection to this set if they're not already present (optional operation). If the specified collection is also a set, the addAll operation effectively modifies this set so that its value is the union of the two sets. The behavior of this operation is undefined if the specified collection is modified while the operation is in progress.

Java documentation for java.util.Set.addAll(java.util.Collection<? extends E>).

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