Home   Info   DevZone   Wiki  
UsersWeb  |  MainWeb  |  InfoWeb  |  DevZoneWeb  |  SupportWeb
Enumeration ] [ not logged in ] [ Web: Imported ] goto:  options
[ get info on or edit ] login or new user ] [ list of topics, hubs & nodes, or recent changes ]

We should be aware that java.util.Enumeration itself is a poorly defined interface, it tends to make code dealing with it very messy.  Sun have recognised this and are replacing (deprecating?) it in JDK 1.2 with 'Iterator'. See the early access specs (you may need a JDC login) at:

http://java.sun.com/products/jdk/1.2/docs/guide/collections/index.html

I think JOS as a whole would be better off using Iterator and the new Java Collections classes instead of Enumeration and the simple java.util.Vector / Stack / Dictionary classes.

-- SimonSpringall




Content of these pages are owned and copyrighted by the poster.
Hosted by: