Defines an interface for enumerators. More...
Public Member Functions | |
(CPArray) | - allObjects [implementation] |
Defines an interface for enumerators.
CPEnumerator is a superclass (with useless method bodies) that defines an interface for subclasses to follow. The purpose of an enumerator is to be a convenient system for traversing over the elements of a collection of objects.
Definition at line 39 of file CPEnumerator.j.
- (CPArray) allObjects | [implementation] |
Returns all objects in the collection in an array. No particular ordering is guaranteed.
Definition at line 54 of file CPEnumerator.j.