Packagesekati.collections
Classpublic class ArrayLoopableIterator
InheritanceArrayLoopableIterator Inheritance ArrayBidirectionalIterator
ImplementsILoopableIterator, IPointerIterator

ArrayLoopableIterator provides a non-destructive, pointer-based, Looping Bi-Directional Array Iterator.



Public Properties
 PropertyDefined by
 Inheritedlength : int
Return the collection length.
ArrayBidirectionalIterator
 Inheritedpointer : int
The interative pointer index.
ArrayBidirectionalIterator
Protected Properties
 PropertyDefined by
 Inherited_array : Array
ArrayBidirectionalIterator
 Inherited_pointer : int
ArrayBidirectionalIterator
Public Methods
 MethodDefined by
  
ArrayLoopableIterator(array:Array)
ArrayLoopableIterator Constructor
ArrayLoopableIterator
 Inherited
current():Object
Return the current element
ArrayBidirectionalIterator
  
glimpse():Object
Return a glimple of the previous element without directionally iterating the pointer backwards.
ArrayLoopableIterator
  
hasNext():Boolean
Override: ArrayLoopableIterator always has a previous element.
ArrayLoopableIterator
  
hasPrevious():Boolean
Override: ArrayLoopableIterator always has a next element.
ArrayLoopableIterator
  
isAtEnd():Boolean
Return true if pointer is at the end of the collection.
ArrayLoopableIterator
  
isAtStart():Boolean
Return true if pointer is at the begining of the collection.
ArrayLoopableIterator
  
next():Object
Override: ArrayLoopableIterator starts at beginning once iteration completes.
ArrayLoopableIterator
  
peek():Object
Return a peek of the next element without directionally iterating the pointer forwards.
ArrayLoopableIterator
  
previous():Object
Override: ArrayLoopableIterator starts at end upon interating to the begining.
ArrayLoopableIterator
 Inherited
reset():void
Reset iterative pointer index.
ArrayBidirectionalIterator
Constructor detail
ArrayLoopableIterator()constructor
public function ArrayLoopableIterator(array:Array)

ArrayLoopableIterator Constructor

Parameters
array:Array
Method detail
glimpse()method
public override function glimpse():Object

Return a glimple of the previous element without directionally iterating the pointer backwards.

Returns
Object
hasNext()method 
public override function hasNext():Boolean

Override: ArrayLoopableIterator always has a previous element.

Returns
Boolean
hasPrevious()method 
public override function hasPrevious():Boolean

Override: ArrayLoopableIterator always has a next element.

Returns
Boolean
isAtEnd()method 
public function isAtEnd():Boolean

Return true if pointer is at the end of the collection.

Returns
Boolean
isAtStart()method 
public function isAtStart():Boolean

Return true if pointer is at the begining of the collection.

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

Override: ArrayLoopableIterator starts at beginning once iteration completes.

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

Return a peek of the next element without directionally iterating the pointer forwards.

Returns
Object
previous()method 
public override function previous():Object

Override: ArrayLoopableIterator starts at end upon interating to the begining.

Returns
Object