Package | sekati.collections |
Class | public class ArrayBidirectionalIterator |
Implements | IBidirectionalIterator, IPointerIterator |
Subclasses | ArrayLoopableIterator |
Property | Defined by | ||
---|---|---|---|
length : int [read-only]
Return the collection length.
| ArrayBidirectionalIterator | ||
pointer : int
The interative pointer index.
| ArrayBidirectionalIterator |
Property | Defined by | ||
---|---|---|---|
_array : Array | ArrayBidirectionalIterator | ||
_pointer : int | ArrayBidirectionalIterator |
Method | Defined by | ||
---|---|---|---|
ArrayBidirectionalIterator(array:Array)
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 |
_array | property |
protected var _array:Array
length | property |
length:int
[read-only]Return the collection length.
Implementation public function get length():int
_pointer | property |
protected var _pointer:int
pointer | property |
pointer:int
[read-write]The interative pointer index.
Implementation public function get pointer():int
public function set pointer(value:int):void
ArrayBidirectionalIterator | () | constructor |
public function ArrayBidirectionalIterator(array:Array)
ArrayBidirectionalIterator Constructor
Parametersarray:Array |
current | () | method |
public function current():Object
Return the current element
ReturnsObject |
glimpse | () | method |
public function glimpse():Object
Return a glimple
of the previous element without
directionally iterating the pointer backwards, or return
null
if none.
Object |
hasNext | () | method |
public function hasNext():Boolean
Check if iterator has a next element.
ReturnsBoolean |
hasPrevious | () | method |
public function hasPrevious():Boolean
Check if iterator has a previous element.
ReturnsBoolean |
next | () | method |
public function next():Object
Returns the next element, or null
if none.
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.
Object |
previous | () | method |
public function previous():Object
Returns the previous element, or null
if none.
Object |
reset | () | method |
public function reset():void
Reset iterative pointer index.