Namespace: OpenEdge.Core.Collections
Type: Class ListIterator
Parent Classes:
Inherits: Progress.Lang.Object
Implements: OpenEdge.Core.Collections.IListIterator


Copyright (c) 2013, 2021 by Progress Software Corporation. All rights reserved.
File:ListIterator
Author(s):hdaniels
Created:Wed Jan 02 23:38:28 EST 2008



Method Summary
  Options Name Purpose
  LOGICAL HasNext () /** Indicates whether there's another element @return Logical Trues if the iterator has another element */
  LOGICAL HasPrevious () /** Indicates whether there's a previous element. @return logical True if there is a previous element */
  Progress.Lang.Object Next () /** Returns the next object in the iterator. Next being the next object at the iterator's current position. @return Object The object at the 'next' position. */
  INTEGER NextIndex () /** Returns the next elements' index. @return integer The index of the next element */
  Progress.Lang.Object Previous () /** Returns the previous element @return Object */
  INTEGER PreviousIndex () /** Returns the index of the previous item. @return integer The index of the previous element */
  LOGICAL Remove () /** Removes an entry from the iterator. @return logical True if the operation succeeeded. */

Constructor Summary
  Options Name Purpose
  ListIterator (IList) /* Constructor @param Progress.Collections.IList<Object> The list being iterated over */
  ListIterator (IList, integer) /* Constructor @param Progress.Collections.IList<Object> The list being iterated over @param integer The starting index */

Method Detail
Top

LOGICAL HasNext ()

Purpose: Indicates whether there's another element
Returns LOGICAL
  Logical Trues if the iterator has another element
Top

LOGICAL HasPrevious ()

Purpose: Indicates whether there's a previous element.
Returns LOGICAL
  logical True if there is a previous element
Top

Progress.Lang.Object Next ()

Purpose: Returns the next object in the iterator. Next being the next object
at the iterator's current position.
Returns Progress.Lang.Object
  Object The object at the 'next' position.
Top

INTEGER NextIndex ()

Purpose: Returns the next elements' index.
Returns INTEGER
  integer The index of the next element
Top

Progress.Lang.Object Previous ()

Purpose: Returns the previous element
Returns Progress.Lang.Object
  Object
Top

INTEGER PreviousIndex ()

Purpose: Returns the index of the previous item.
Returns INTEGER
  integer The index of the previous element
Top

LOGICAL Remove ()

Purpose: Removes an entry from the iterator.
Returns LOGICAL
  logical True if the operation succeeeded.


Constructor Detail
Top

ListIterator (IList)
/* Constructor
Parameters:
pList Progress.Collections.IList
 

Top

ListIterator (IList, integer)
/* Constructor
Parameters:
pList Progress.Collections.IList
 
pIdx INTEGER