Namespace: OpenEdge.Core.Collections
Class
ArrayIterator
Parent classes:
Inherits: Progress.Lang.Object
Implements: OpenEdge.Core.Collections.IListIterator

Copyright (c) 2013, 2018, 2020-2021 by Progress Software Corporation. All rights reserved.
File:ArrayIterator
Author(s):pjudge
Created:Thu Jun 14 12:13:12 EDT 2012
Notes:* Based on the AutoEdge|TheFactory version
Updated 11/13/2019 - Implemented IListIterator to make
more compatible in situations where Lists are replaced by
arrays for memory usage reasons.




Method Summary
Options Name Purpose
LOGICAL HasNext ()
LOGICAL HasPrevious ()
Progress.Lang.Object Next ()
INTEGER NextIndex () /* Returns the index of the element that would be returned by a subsequent call to next(). Returns list size if the list iterator is at the end of the list. @return integer The next index or the array size if at the end */
Progress.Lang.Object Previous ()
INTEGER PreviousIndex () /* Returns the index of the element that would be returned by a subsequent call to previous(). Returns 0 if the list iterator is at the beginning of the list. @return integer The previous index or 0/zero if at the beginning */
LOGICAL Remove ()

Constructor Summary
Options Name Purpose
ArrayIterator (Array) /* Constructor @param Array The array over which to iterate */
ArrayIterator (Array, integer) /* Constructor @param Array The array over which to iterate @param integer The starting extent/index */

Property Summary
Options Name Purpose
INTEGER CurrentExtent
OpenEdge.Core.Collections.Array IteratedArray


Method Detail
Top

LOGICAL HasNext ()

Returns LOGICAL
Top

LOGICAL HasPrevious ()

Returns LOGICAL
Top

Progress.Lang.Object Next ()

Returns Progress.Lang.Object
Top

INTEGER NextIndex ()

/* Returns the index of the element that would be returned by a subsequent call to next().
Returns list size if the list iterator is at the end of the list.
Returns INTEGER
integer The next index or the array size if at the end
Top

Progress.Lang.Object Previous ()

Returns Progress.Lang.Object
Top

INTEGER PreviousIndex ()

/* Returns the index of the element that would be returned by a subsequent call to previous().
Returns 0 if the list iterator is at the beginning of the list.
Returns INTEGER
integer The previous index or 0/zero if at the beginning
Top

LOGICAL Remove ()

Returns LOGICAL


Constructor Detail
Top

ArrayIterator (Array)

/* Constructor
Parameters:
poIteratedArray OpenEdge.Core.Collections.Array
Top

ArrayIterator (Array, integer)

/* Constructor
Parameters:
pIteratedArray OpenEdge.Core.Collections.Array
pIndex INTEGER


Property Detail
Top

INTEGER CurrentExtent

Returns INTEGER
Top

OpenEdge.Core.Collections.Array IteratedArray

Returns OpenEdge.Core.Collections.Array


Copyright © 2022 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7.15