AuD
Lecture 'Algorithmen und Datenstrukturen' (code examples)
aud.Vector< T >.Iterator Class Reference

Forward iterator. More...

+ Inheritance diagram for aud.Vector< T >.Iterator:
+ Collaboration diagram for aud.Vector< T >.Iterator:

Public Member Functions

boolean hasNext ()
 return true unless "advanced" over tail More...
 
T next ()
 return current entry and advance More...
 
void remove ()
 not implemented More...
 

Detailed Description

Forward iterator.

Definition at line 213 of file Vector.java.

Member Function Documentation

◆ hasNext()

boolean aud.Vector< T >.Iterator.hasNext ( )

return true unless "advanced" over tail

Definition at line 220 of file Vector.java.

220{ return idx_<v_.size(); }

◆ next()

T aud.Vector< T >.Iterator.next ( )

return current entry and advance

Definition at line 223 of file Vector.java.

223{ return v_.at(idx_++); }

◆ remove()

void aud.Vector< T >.Iterator.remove ( )

not implemented

Exceptions
UnsupportedOperationException

Definition at line 228 of file Vector.java.

228 {
229 throw new UnsupportedOperationException();
230 }

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