Sdílet prostřednictvím


Collections.Enumeration(ICollection) Method

Definition

Returns an enumeration over the specified collection.

[Android.Runtime.Register("enumeration", "(Ljava/util/Collection;)Ljava/util/Enumeration;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static Java.Util.IEnumeration Enumeration (System.Collections.ICollection c);
[<Android.Runtime.Register("enumeration", "(Ljava/util/Collection;)Ljava/util/Enumeration;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
static member Enumeration : System.Collections.ICollection -> Java.Util.IEnumeration

Parameters

c
ICollection

the collection for which an enumeration is to be returned.

Returns

an enumeration over the specified collection.

Attributes

Remarks

Returns an enumeration over the specified collection. This provides interoperability with legacy APIs that require an enumeration as input.

The iterator returned from a call to Enumeration#asIterator() does not support removal of elements from the specified collection. This is necessary to avoid unintentionally increasing the capabilities of the returned enumeration.

Java documentation for java.util.Collections.enumeration(java.util.Collection<T>).

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