IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
java.util.EnumerationExtensions Class Reference

Provides extension methods for working against Java Enumeration instances. More...

Static Public Member Functions

static IEnumerator< T > AsEnumerator< T > (this Enumeration enumeration)
 Returns the appropriate wrapper type for the given Enumeration.
 
static IEnumerable< T > AsEnumerable< T > (this Enumeration enumeration)
 Returns the appropriate wrapper type for the given Enumeration.
 

Detailed Description

Provides extension methods for working against Java Enumeration instances.

Definition at line 9 of file EnumerationExtensions.cs.

Member Function Documentation

◆ AsEnumerable< T >()

static IEnumerable< T > java.util.EnumerationExtensions.AsEnumerable< T > ( this Enumeration enumeration)
static

Returns the appropriate wrapper type for the given Enumeration.

Template Parameters
T
Parameters
enumeration
Returns

Definition at line 30 of file EnumerationExtensions.cs.

31 {
32 var e = enumeration.AsEnumerator<T>();
33 while (e.MoveNext())
34 yield return e.Current;
35 }

◆ AsEnumerator< T >()

static IEnumerator< T > java.util.EnumerationExtensions.AsEnumerator< T > ( this Enumeration enumeration)
static

Returns the appropriate wrapper type for the given Enumeration.

Template Parameters
T
Parameters
enumeration
Returns

The documentation for this class was generated from the following file: