- All Implemented Interfaces:
Iterable<List<E>>
Cartesian product with iterator.
-
-
Constructor Summary
Constructors
CartesianProduct constructor.
-
Method Summary
Get an iterator over subsets.
Transform list to iterables.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Details
-
CartesianProduct
CartesianProduct constructor.
- Parameters:
comps
- components of the Cartesian product.
-
Method Details
-
iterator
Get an iterator over subsets.
- Specified by:
iterator
in interface Iterable<E>
- Returns:
- an iterator.
-
listToIterable
Transform list to iterables.
- Parameters:
comp
- components of the Cartesian product.
- Returns:
- iterables taken from lists.