次の方法で共有


Collections.List(IEnumeration) Method

Definition

Returns an array list containing the elements returned by the specified enumeration in the order they are returned by the enumeration.

[Android.Runtime.Register("list", "(Ljava/util/Enumeration;)Ljava/util/ArrayList;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static System.Collections.IList List (Java.Util.IEnumeration e);
[<Android.Runtime.Register("list", "(Ljava/util/Enumeration;)Ljava/util/ArrayList;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
static member List : Java.Util.IEnumeration -> System.Collections.IList

Parameters

e
IEnumeration

enumeration providing elements for the returned array list

Returns

an array list containing the elements returned by the specified enumeration.

Attributes

Remarks

Returns an array list containing the elements returned by the specified enumeration in the order they are returned by the enumeration. This method provides interoperability between legacy APIs that return enumerations and new APIs that require collections.

Added in 1.4.

Java documentation for java.util.Collections.list(java.util.Enumeration<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