Packagesekati.collections
Classpublic class ArrayBidirectionalIterator
ImplementsIBidirectionalIterator, IPointerIterator
SubclassesArrayLoopableIterator

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



Public Properties
 PropertyDefined by
  length : int
[read-only] Return the collection length.
ArrayBidirectionalIterator
  pointer : int
The interative pointer index.
ArrayBidirectionalIterator
Protected Properties
 PropertyDefined by
  _array : Array
ArrayBidirectionalIterator
  _pointer : int
ArrayBidirectionalIterator
Public Methods
 MethodDefined by
  
ArrayBidirectionalIterator Constructor
ArrayBidirectionalIterator
  
current():Object
Return the current element
ArrayBidirectionalIterator
  
glimpse():Object
Return a glimple of the previous element without directionally iterating the pointer backwards, or return null if none.
ArrayBidirectionalIterator
  
hasNext():Boolean
Check if iterator has a next element.
ArrayBidirectionalIterator
  
hasPrevious():Boolean
Check if iterator has a previous element.
ArrayBidirectionalIterator
  
next():Object
Returns the next element, or null if none.
ArrayBidirectionalIterator
  
peek():Object
Return a peek of the next element without directionally iterating the pointer forwards, or return null if none.
ArrayBidirectionalIterator
  
previous():Object
Returns the previous element, or null if none.
ArrayBidirectionalIterator
  
reset():void
Reset iterative pointer index.
ArrayBidirectionalIterator
Property detail
_arrayproperty
protected var _array:Array
lengthproperty 
length:int  [read-only]

Return the collection length.

Implementation
    public function get length():int
_pointerproperty 
protected var _pointer:int
pointerproperty 
pointer:int  [read-write]

The interative pointer index.

Implementation
    public function get pointer():int
    public function set pointer(value:int):void
Constructor detail
ArrayBidirectionalIterator()constructor
public function ArrayBidirectionalIterator(array:Array)

ArrayBidirectionalIterator Constructor

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

Return the current element

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

Return a glimple of the previous element without directionally iterating the pointer backwards, or return null if none.

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

Check if iterator has a next element.

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

Check if iterator has a previous element.

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

Returns the next element, or null if none.

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

Return a peek of the next element without directionally iterating the pointer forwards, or return null if none.

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

Returns the previous element, or null if none.

Returns
Object
reset()method 
public function reset():void

Reset iterative pointer index.