Collections.Enumeration(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 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
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.