Packagesystem.data
Interfacepublic interface OrderedIterator extends Iterator
Implementors PageByPageIterator, PageableArrayModel, TimelineIterator

Defines an iterator that operates over an ordered collection. This iterator allows both forward and reverse iteration through the collection.



Public Methods
 MethodDefined By
 Inherited
hasNext():Boolean
Returns true if the iteration has more elements.
Iterator
  
hasPrevious():Boolean
Checks to see if there is a previous element that can be iterated to.
OrderedIterator
 Inherited
key():*
Returns the current key of the internal pointer of the iterator (optional operation).
Iterator
 Inherited
next():*
Returns the next element in the iteration.
Iterator
  
Returns the previous element in the collection.
OrderedIterator
 Inherited
remove():*
Removes from the underlying collection the last element returned by the iterator (optional operation).
Iterator
 Inherited
reset():void
Reset the internal pointer of the iterator (optional operation).
Iterator
 Inherited
seek(position:*):void
Changes the position of the internal pointer of the iterator (optional operation).
Iterator
Method Detail
hasPrevious()method
public function hasPrevious():Boolean

Checks to see if there is a previous element that can be iterated to.

Returns
Boolean
previous()method 
public function previous():*

Returns the previous element in the collection.

Returns
* — the previous element in the collection.