Class MultiIterator<T>

java.lang.Object
com.querydsl.core.util.MultiIterator<T>
Type Parameters:
T - element type
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 Details

    • MultiIterator

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

    • 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>