ObjectIterator

Kind of class:public class
Package:com.bourre.collection
Inherits from:none
Implements:
Author:Cédric Néhémie
Classpath:com.bourre.collection.ObjectIterator
File last modified:Monday, 24 November 2008, 11:36:49
The ObjectIterator class provides a convenient way
to iterate through each property of an Object instance
as you could do with a Collection instance.

Order of returned elements are not guaranteed, the order is the
same as the for...in one.

The object iterator can only iterate thorugh public properties
of an object, as the for...in loop does.

See also:

Summary


Constructor
Instance methods

Constructor

ObjectIterator

public function ObjectIterator (
o:Object)

Creates a new iterator to iterate through
each property of the passed-in object.
Parameters:
o:
Object iterator's target

Instance methods

hasNext

public function hasNext (
) : Boolean

Returns:
  • ObjectIterator if the iterator has more elements.
    #
Specified by:

remove

public function remove (
) : void

Throws:
  • {VISDOC_LINK_0}Collection — if the remove operation is not
    supported by this Iterator.
    #
  • {VISDOC_LINK_1}for...in — if the next method has not yet been called,
    or the remove method has already been called after the last
    call to the next method.
    #
Specified by: