Package | com.ericfeminella.utils.iterators |
Interface | public interface IIterator |
Method | Defined by | ||
---|---|---|---|
hasNext():Boolean
Determines if there are elements remaining in the aggregate
| IIterator | ||
next():*
Returns the next element in the aggregate
| IIterator | ||
remove():void
Remove must be implemented to provide the standard iterator
implementation.
| IIterator | ||
reset():void
Resets the cursor / index of the Iterator to 0
| IIterator | ||
setAggregate(aggregate:*):void
Sets the aggregate object for a concrete iterator implementation
| IIterator |
hasNext | () | method |
public function hasNext():Boolean
Determines if there are elements remaining in the aggregate
ReturnsBoolean — true if an element remains in the aggregate, false if not
|
next | () | method |
public function next():*
Returns the next element in the aggregate
Returns* — Next array element based on the current index
|
remove | () | method |
public function remove():void
Remove must be implemented to provide the standard iterator implementation. However, typically this method would not provide an actual implementation as a concrete iterator is not to perform modifications on the aggregate. Instead a concrete implementation would throw an UnsupportedOperationException
reset | () | method |
public function reset():void
Resets the cursor / index of the Iterator to 0
setAggregate | () | method |
public function setAggregate(aggregate:*):void
Sets the aggregate object for a concrete iterator implementation
Parametersaggregate:* |