Package edu.jas.util
Class CartesianProductIterator<E>
java.lang.Object
edu.jas.util.CartesianProductIterator<E>
Cartesian product iterator.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCartesianProductIterator
(List<Iterable<E>> comps) CartesianProduct iterator constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
comps
data structure. -
compit
-
current
-
empty
boolean empty
-
-
Constructor Details
-
CartesianProductIterator
CartesianProduct iterator constructor.- Parameters:
comps
- components of the Cartesian product.
-
-
Method Details
-
hasNext
public boolean hasNext()Test for availability of a next tuple. -
next
Get next tuple. -
remove
public void remove()Remove a tuple if allowed.
-