Package | com.ericfeminella.utils.iterators |
Interface | public interface IIterator |
Method | Defined by | ||
---|---|---|---|
hasNext():Boolean
Determines if there are elements remaining in the aggregate object
| IIterator | ||
next():*
Returns the next property value in the aggregate object
| IIterator | ||
remove():void
Typically this method is not to be implemented therefore as a best practice any implementations
should throw an Exception.
| IIterator | ||
setAggregate(aggregate:*):void
Sets the aggregate object instance in which an iterator implementation is to iterate over
| IIterator |
hasNext | () | method |
public function hasNext():Boolean
Determines if there are elements remaining in the aggregate object
ReturnsBoolean — true if an element remains in the aggregate, false if not
|
next | () | method |
public function next():*
Returns the next property value in the aggregate object
Returns* — value of current index
|
remove | () | method |
public function remove():void
Typically this method is not to be implemented therefore as a best practice any implementations should throw an Exception.
However, if need be this method may be implemented to remove an item specified ar the last index position of the Iterator implementation
setAggregate | () | method |
public function setAggregate(aggregate:*):void
Sets the aggregate object instance in which an iterator implementation is to iterate over
Parametersaggregate:* |