Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress Servlet Development Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

6.2 Using rwsf::Enumeration

A rwsf::Enumeration object provides a simple, safe interface to a collection of objects. HydraExpress returns an instance of rwsf::Enumeration to represent a list of items. For simplicity, an enumeration provides only two functions: the hasMoreElements() function which returns true if the enumeration contains another element; and the nextElement() function which returns the next object in the enumeration. An enumeration is designed for code such as the loop below:

The nextElement() function throws rwsf::OutOfBoundsException if the enumeration has no more elements.



Previous fileTop of DocumentContentsIndex pageNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo are registered trademarks of Rogue Wave Software, and HydraExpress is a trademark of Rogue Wave Software. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.