Main Page | Packages | Class Tree | Index | Help

xp.util

class ListItemIterator

Object
  |
  +--xp.util.ListItemIterator


class ListItemIterator
extends Object

An Iterator for iterating over a ListCollection


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Constructor

public
ListItemIterator ( list)
Constructor

Method Summary

public
hasNext ( ): Boolean
Indicates whether the iterator has more items.

public
next ( ): Object
Returns the next item in the iteration.



Constructor Documentation

ListItemIterator

public function ListItemIterator(list)
Constructor

Parameters:
list
The list collection to iterator

Method Documentation

hasNext

public function hasNext(): Boolean
Indicates whether the iterator has more items.

Looks ahead to see of the iterator still has a next item.
You typically use this method in a while statement when looping through an iterator.

Returns:
A Boolean value that indicates whether there are (true) or are not (false) more instances in the iterator.

next

public function next(): Object
Returns the next item in the iteration.

Returns the next item

Returns:
An object that is the next item in the iterator.


The documentation was generated from the following file:


Generated on 10/30/2005 9:34:02 PM by AS2Doc