I was wondering what is the best way to write an ProductListIterator which is an iteration of an thetha joins of objects in a Array of lists.
Elements of each list are accessed in chucks of blockSize elements to cut down the number of times each list is iterated. For each combination of elements, the elements are combined using the supplied combiner object and the result is part of the resulting list.
constructor=public ProductList(List[] lists, Combiner combiner, int blockSize)
class= class ProductListIterator implements ListIterator
method working on = public productListIterator()
Any help appreciated