Class com.sekati.data.Iterator

Description

Data Array Iterator Class.

Field Index

data

Method Index

new Iterator()
current(), currentIndex(), hasNext(), hasPrevious(), next(), nextIndex(), previous(), previousIndex(), reset()

Inherited from CoreObject

Constructor Detail

Iterator

public function Iterator(data:Array)

Iterator Constructor

Parameters

data(Array) data array

Throws

Erroron missing data arg.

Field Detail

data

public data:Array
getter - return the Iterator data array.

Method Detail

next

public function next():Object

Returns the next element (or null if none)

Return

Object

previous

public function previous():Object

Return the previous element (or null if none)

Return

Object

current

public function current():Object

Return the current element

Return

Object

reset

public function reset():Void

Reset the Iterator index.

Return

Void

hasNext

public function hasNext():Boolean

Check if iterator has a next element

Return

Boolean

hasPrevious

public function hasPrevious():Boolean

Check if iterator has a previous element

Return

Boolean

nextIndex

public function nextIndex():Number

Return the next index if available.

Return

Number

previousIndex

public function previousIndex():Number

Return the previous index if available.

Return

Number

currentIndex

public function currentIndex():Number

Return the current index.

Return

Number