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