Class fever.data.iterator.ListIterator

Description

Allow iteration in 'next' and 'previous' direction over data structure.

Method Index

new ListIterator()
hasPrevious(), previous(), resetIndex()

Constructor Detail

ListIterator

public function ListIterator(array:Array)

Constructor.

Parameters

array Array to iterate over.

Method Detail

hasPrevious

public function hasPrevious():Boolean

Indicates if current iterated structure has a 'previous' element.

previous

public function previous()

Returns 'previous' element.

resetIndex

public function resetIndex():Void

Resets cursor position at the beginning of data structure.