Register  Login
Blog
 
Iterator Pattern availableMinimize
Location: BlogsOO Cobol Blog   
Posted by: host5/11/2010

Iterators are very useful to traverse collections.

Implemented methods are:

First() - initialize iterator and return first element (zero based) if any

Next() - Get next element in the collection, if any

SetItem() - Insert/update element in the collection

isDone() - Return true if there is no next element to retrieve

Click here to read the full article.

Permalink | Trackback

Your name:
Title:
Comment:
Add Comment  Cancel 
  



Software
  Top Blogs

Blog_ArchiveMinimize
    

Powered by WebRing.
Terms Of Use | Privacy Statement | Copyright 2009-2010 by RedRailsDynnamite DotNetNuke Skins & Modules