Packagesekati.collections
Classpublic class FilteredIterator
ImplementsIIterator

Filtered Iterator



Protected Properties
 PropertyDefined by
  _filter : Function
FilteredIterator
  _iterator : IIterator
FilteredIterator
Public Methods
 MethodDefined by
  
FilteredIterator(unfilteredCollection:IIterator, filterFunction:Function)
FilteredIterator Constructor
FilteredIterator
  
hasNext():Boolean
Is there another item in the collection to move to.
FilteredIterator
  
next():Object
Move to the next item and return it.
FilteredIterator
  
peek():Object
Returns the next item in the collection without moving to it.
FilteredIterator
Property detail
_filterproperty
protected var _filter:Function
_iteratorproperty 
protected var _iterator:IIterator
Constructor detail
FilteredIterator()constructor
public function FilteredIterator(unfilteredCollection:IIterator, filterFunction:Function)

FilteredIterator Constructor

Parameters
unfilteredCollection:IIterator
 
filterFunction:Function
Method detail
hasNext()method
public function hasNext():Boolean

Is there another item in the collection to move to.

Returns
Boolean
next()method 
public function next():Object

Move to the next item and return it.

Returns
Object
peek()method 
public function peek():Object

Returns the next item in the collection without moving to it.

Returns
Object