TROIKA.ASP - the MVC framework

Class ListIterator

Object
   |
   +--ListIterator

class ListIterator


This is ListIterator class - implementation of iterator over an list.
Defined in ListIterator.js


Constructor Summary
ListIterator(<Array> v)
            An iterator over a list.
 
Method Summary
 void add(<Object> value)
           Appends a new value to the current list.
 boolean hasNext()
           Returns true if the iteration has next element.
 boolean hasPrevious()
           Returns true if the iteration has previous element.
 int index()
           Returns the current index of the iteration.
 ListIterator init(v)
           Initializes ListIterator.
 Object next()
           Returns the next element in the iteration.
 Object previous()
           Returns the previous element in the iteration.
 void remove()
           Removes from the underlying collection the last element returned by the iterator.
 void set(<Object> value)
           Sets a new value to the current element.

Constructor Detail

ListIterator

ListIterator(<Array> v)

Method Detail

add

void add(<Object> value)

hasNext

boolean hasNext()

hasPrevious

boolean hasPrevious()

index

int index()

init

ListIterator init(v)

next

Object next()

previous

Object previous()

remove

void remove()

set

void set(<Object> value)

TROIKA.ASP - the MVC framework

www.troika-asp.com
Documentation generated on Sun Jun 15 17:59:32 2008