Saturday, July 19, 2008

Object collection class with iterator

So I added an iterator to my collection cfc. Several people blogged about using java iterator for coldfusion arrays and looks like Transfer uses those.

Here is an iterator method:

I also changed getBy() and removeBy() to use iterator:

Also have to plug MXUnit. Using it made refactoring like that above, much more enjoyable.

No comments: