Udostępnij za pośrednictwem


Collections.EmptyEnumeration Method

Definition

Returns an enumeration that has no elements.

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

Returns

an empty enumeration

Attributes

Remarks

Returns an enumeration that has no elements. More precisely,

<ul> <li>Enumeration#hasMoreElements hasMoreElements always returns false.</li> <li> Enumeration#nextElement nextElement always throws NoSuchElementException.</li> </ul>

Implementations of this method are permitted, but not required, to return the same object from multiple invocations.

Added in 1.7.

Java documentation for java.util.Collections.emptyEnumeration().

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