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
to iterate through each property of an
as you could do with a
ObjectIterator class provides a convenient wayto 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:
Constructor
ObjectIterator
public function ObjectIterator (
o:Object)
Creates a new iterator to iterate through
each property of the passed-in object.
each property of the passed-in object.
Parameters:
o:
Object iterator's targetInstance methods
hasNext
public function hasNext (
) : Boolean
Returns:
- #
ObjectIteratorif the iterator has more elements.
Specified by:
next
public function next (
) : *
remove
public function remove (
) : void
Specified by: