Collections.EmptyEnumeration 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 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.