Iterator Methods

The methods defined in the Iterator class are summarized in the following table.

Method Description
back Accesses entries in reverse order in the collection to which the iteration is attached
current Returns the last value iterated by the back or next method
excludeOfflineObjects Specifies whether objects stored in offline partitions should be excluded from the iteration
getCollection Returns the collection associated with the receiver
getCurrentKey Retrieves a single key from a dictionary while iterating through the dictionary
getCurrentKeys Retrieves keys from a dictionary while iterating through the dictionary
isValid Returns true if the receiver is a valid iterator
next Accesses successive entries in the collection to which the iteration is attached
reset Initializes an iterator
startAtIndex Sets the starting position of the iterator to a relative index in the attached collection
startAtObject Sets the starting position of the iterator at the position of the specified object
startNearIndex Sets the starting position of the iterator in the attached collection approximate to a relative index