| Package | net.guttershark.util.collections |
| Class | public final class ArrayLoopableIterator |
| Inheritance | ArrayLoopableIterator ArrayBidirectionalIterator |
| Method | Defined by | ||
|---|---|---|---|
|
ArrayLoopableIterator(array:Array)
Constructor for ArrayLoopableIterator instances.
| ArrayLoopableIterator | ||
![]() |
current():Object
The current element.
| ArrayBidirectionalIterator | |
![]() |
dispose():void
Dispose of this iterator.
| ArrayBidirectionalIterator | |
|
glimpse():Object
Return a
glimple of the previous element without
updating the pointer. | ArrayLoopableIterator | ||
|
hasNext():Boolean
This will always have a next element, because the pointer loops.
| ArrayLoopableIterator | ||
|
hasPrevious():Boolean
This will always have a previous element, because the pointer loop.
| 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
Returns the next object, and will start
over when reached the end.
| ArrayLoopableIterator | ||
|
peek():Object
Return a
peek of the next element without
updating the pointer. | ArrayLoopableIterator | ||
|
previous():Object
Returns the previous object, and will go to the end
once the pointer get's to the beginning.
| ArrayLoopableIterator | ||
![]() |
reset():void
Resets the pointer.
| ArrayBidirectionalIterator | |
| ArrayLoopableIterator | () | constructor |
public function ArrayLoopableIterator(array:Array)Constructor for ArrayLoopableIterator instances.
Parametersarray:Array — The array to iterate over.
|
| glimpse | () | method |
public override function glimpse():Object
Return a glimple of the previous element without
updating the pointer.
Object |
| hasNext | () | method |
public override function hasNext():BooleanThis will always have a next element, because the pointer loops.
ReturnsBoolean |
| hasPrevious | () | method |
public override function hasPrevious():BooleanThis will always have a previous element, because the pointer loop.
ReturnsBoolean |
| isAtEnd | () | method |
public function isAtEnd():Boolean
Return true if pointer is at the end of the collection.
Boolean |
| isAtStart | () | method |
public function isAtStart():Boolean
Return true if pointer is at the begining of the collection.
Boolean |
| next | () | method |
public override function next():ObjectReturns the next object, and will start over when reached the end.
ReturnsObject |
| peek | () | method |
public override function peek():Object
Return a peek of the next element without
updating the pointer.
Object |
| previous | () | method |
public override function previous():ObjectReturns the previous object, and will go to the end once the pointer get's to the beginning.
ReturnsObject |