com.mysema.util
Class MultiIterator<T>

java.lang.Object
  extended by com.mysema.util.MultiIterator<T>
All Implemented Interfaces:
Iterator<Object[]>

public class MultiIterator<T>
extends Object
implements Iterator<Object[]>

MultiIterator provides a cartesian view on the given iterators

 e.g. (1,2) and (100, 200, 300)
 are expanded to (1, 100) (1, 200) (1, 300) (2, 100) (2, 200) (2, 300)
 

Author:
tiwe

Constructor Summary
MultiIterator(List<? extends Iterable<T>> iterables)
           
 
Method Summary
 boolean hasNext()
           
 T[] next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiIterator

public MultiIterator(List<? extends Iterable<T>> iterables)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<Object[]>

next

public T[] next()
Specified by:
next in interface Iterator<Object[]>

remove

public void remove()
Specified by:
remove in interface Iterator<Object[]>


Copyright © 2007-2011 Mysema Ltd. All Rights Reserved.