ListIterator.new Method

Creates a new iterator for a particular list.

Syntax

public void new(List list)

Run On

Called

Parameters

  • list
    Type: List Class
    The list for which to create an iterator.

Remarks

The iterator is positioned at the first value in the list, if the list is not empty. Iterators and the lists that they iterate over must be on the same client/server side.

Examples

The following example creates an iterator for a list of integers.

List il = new List(types::Integer); 
ListIterator it; 
  
it = new ListIterator (il);

See Also

Reference

ListIterator Class