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

Public Member Functions

 IteratorWrapper (Iterator iterator)
 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 IteratorWrapper.cs.

Constructor & Destructor Documentation

◆ IteratorWrapper()

java.util.IteratorWrapper< T >.IteratorWrapper ( Iterator iterator)

Initializes a new instance.

Parameters
iterator
Exceptions
ArgumentNullException

Definition at line 20 of file IteratorWrapper.cs.

21 {
22 _iterator = iterator ?? throw new ArgumentNullException(nameof(iterator));
23 }

Member Function Documentation

◆ Dispose()

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

Disposes of the instance.

Definition at line 54 of file IteratorWrapper.cs.

55 {
56
57 }

◆ MoveNext()

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

Moves to the next instance.

Returns

Definition at line 39 of file IteratorWrapper.cs.

40 {
41 if (_iterator.hasNext())
42 {
43 _current = (T)_iterator.next();
44 _position++;
45 return true;
46 }
47
48 return false;
49 }

◆ Reset()

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

Not supported.

Exceptions
NotSupportedException

Definition at line 63 of file IteratorWrapper.cs.

64 {
65 throw new NotSupportedException();
66 }

Property Documentation

◆ Current

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

Gets the current element.

Definition at line 28 of file IteratorWrapper.cs.


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