org.aksw.commons.collections
Class CartesianProductIterator<T>

java.lang.Object
  extended by org.aksw.commons.collections.CartesianProductIterator<T>
Type Parameters:
T -
All Implemented Interfaces:
Iterator<List<T>>

public class CartesianProductIterator<T>
extends Object
implements Iterator<List<T>>

FIXME Make use of PrefetchIteratorScala


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

Constructor Detail

CartesianProductIterator

public CartesianProductIterator(T[]... collections)

CartesianProductIterator

public CartesianProductIterator(Iterable<? extends T>... collections)

CartesianProductIterator

public CartesianProductIterator(List<? extends Iterable<? extends T>> collections)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<List<T>>

next

public List<T> next()
Specified by:
next in interface Iterator<List<T>>

remove

public void remove()
Specified by:
remove in interface Iterator<List<T>>


Copyright © 2011. All Rights Reserved.