ISet.CopyOf(ICollection) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an <a href="#unmodifiable">unmodifiable Set</a> containing the elements of the given Collection.
[Android.Runtime.Register("copyOf", "(Ljava/util/Collection;)Ljava/util/Set;", "", ApiSince=31)]
[Java.Interop.JavaTypeParameters(new System.String[] { "E" })]
public static System.Collections.ICollection CopyOf (System.Collections.ICollection coll);
[<Android.Runtime.Register("copyOf", "(Ljava/util/Collection;)Ljava/util/Set;", "", ApiSince=31)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "E" })>]
static member CopyOf : System.Collections.ICollection -> System.Collections.ICollection
Parameters
- coll
- ICollection
a Collection from which elements are drawn, must be non-null
Returns
a Set containing the elements of the given Collection
- Attributes
Remarks
Java documentation for java.util.Set.copyOf(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.