Package edu.jas.util
Class CartesianTwoProductInfiniteIteratorList<E>
java.lang.Object
edu.jas.util.CartesianTwoProductInfiniteIteratorList<E>
Cartesian product infinite iterator, two factors list version.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondata structure.(package private) boolean
(package private) long
-
Constructor Summary
Constructors -
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
-
compit0
data structure. -
compit1
-
fincomps0
-
fincomps1
-
fincompit0
-
fincompit1
-
current
-
empty
boolean empty -
level
long level
-
-
Constructor Details
-
CartesianTwoProductInfiniteIteratorList
CartesianProduct iterator constructor.- Parameters:
comps0
- first components of the Cartesian product.comps1
- second 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.
-