Läs på engelska

Dela via


Collections.EmptyEnumeration Method

Definition

Returns an enumeration that has no elements.

C#
[Android.Runtime.Register("emptyEnumeration", "()Ljava/util/Enumeration;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static Java.Util.IEnumeration EmptyEnumeration();

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

Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35