IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
java.util.EnumerationWrapper< T > Class Template Reference
Inheritance diagram for java.util.EnumerationWrapper< T >:

Public Member Functions

 EnumerationWrapper (Enumeration enumeration)
 Initializes a new instance.
 
bool MoveNext ()
 Moves to the next instance.
 
void Dispose ()
 Disposes of the instance.
 
void Reset ()
 Not supported.
 

Properties

Current [get]
 Gets the current element.
 

Detailed Description

Definition at line 8 of file EnumerationWrapper.cs.

Constructor & Destructor Documentation

◆ EnumerationWrapper()

java.util.EnumerationWrapper< T >.EnumerationWrapper ( Enumeration enumeration)

Initializes a new instance.

Parameters
enumeration
Exceptions
ArgumentNullException

Definition at line 20 of file EnumerationWrapper.cs.

21 {
22 _enumeration = enumeration ?? throw new ArgumentNullException(nameof(enumeration));
23 }

Member Function Documentation

◆ Dispose()

void java.util.EnumerationWrapper< T >.Dispose ( )

Disposes of the instance.

Definition at line 55 of file EnumerationWrapper.cs.

56 {
57
58 }

◆ MoveNext()

bool java.util.EnumerationWrapper< T >.MoveNext ( )

Moves to the next instance.

Returns
Exceptions
NotImplementedException

Definition at line 40 of file EnumerationWrapper.cs.

41 {
42 if (_enumeration.hasMoreElements())
43 {
44 _current = (T)_enumeration.nextElement();
45 _position++;
46 return true;
47 }
48
49 return false;
50 }

◆ Reset()

void java.util.EnumerationWrapper< T >.Reset ( )

Not supported.

Exceptions
NotSupportedException

Definition at line 64 of file EnumerationWrapper.cs.

65 {
66 throw new NotSupportedException();
67 }

Property Documentation

◆ Current

T java.util.EnumerationWrapper< T >.Current
get

Gets the current element.

Definition at line 28 of file EnumerationWrapper.cs.


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