[Clirr-devel] Proposal: CoIterator class
Status: Alpha
Brought to you by:
lkuehne
From: Simon K. <si...@ec...> - 2004-06-11 00:33:25
|
Kiora! Attached is a class I would like to add to the framework dir for iterating over two collections of objects, returning "pairs" of equal items (and pairs with one element set to null for items in either set without an equivalent item in the other set). This can be used for iterating over two sets of JavaClass objects, or two sets of Field objects, or two sets of Method objects, etc. I would like to then update existing code which implements this functionality in many of the checks to use the CoIterator instead. To show how this works, attached is an updated AddedClassCheck class. All feedback welcome. Regards, Simon |