com.mysema.util
Class MultiIterator<T>
java.lang.Object
com.mysema.util.MultiIterator<T>
- All Implemented Interfaces:
- java.util.Iterator<T[]>
public class MultiIterator<T>
- extends java.lang.Object
- implements java.util.Iterator<T[]>
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)
- Version:
- $Id$
- Author:
- tiwe
Constructor Summary |
MultiIterator(java.util.List<java.lang.Iterable<T>> iterables)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiIterator
public MultiIterator(java.util.List<java.lang.Iterable<T>> iterables)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator<T[]>
next
public T[] next()
- Specified by:
next
in interface java.util.Iterator<T[]>
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator<T[]>
Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.