Iterator for Collection class
The constructor
Name | Type | Description |
---|---|---|
collection | Collection | The collection for witch the iterator is used |
Move the iterator to the next object and return true when the end of the Collection is reached
Returns true when the iterator is on the first object
Returns The position of the iterator in the Collection
Returns true when the iterator is on the last object
The object after the object pointed by the iterator or null if iterator is on the last object
The object before the object pointed by the iterator or null if iterator is on the first object
The object pointed by the iterator
The collection used by the iterator