| Package | de.polygonal.ds |
| Interface | public interface Iterator |
| Implementors | DListIterator, NullIterator, SListIterator, TreeIterator |
| Property | Defined By | ||
|---|---|---|---|
| data : *
Grants access to the current item being referenced by the iterator. | Iterator | ||
| Method | Defined By | ||
|---|---|---|---|
hasNext():Boolean
Checks if a next item exists. | Iterator | ||
next():*
Returns the current item and moves the iterator to the next item
in the collection. | Iterator | ||
start():void
Moves the iterator to the first item in the collection. | Iterator | ||
| data | property |
data:*Grants access to the current item being referenced by the iterator. This provides a quick way to read or write the current data.
public function get data():* public function set data(value:any):void| hasNext | () | method |
public function hasNext():BooleanChecks if a next item exists.
ReturnsBoolean — True if a next item exists, otherwise false.
|
| next | () | method |
public function next():*Returns the current item and moves the iterator to the next item in the collection. Note that the next() method returns the first item in the collection when it's first called.
Returns* — The next item in the collection.
|
| start | () | method |
public function start():voidMoves the iterator to the first item in the collection.