public class CartesianProduct<E> extends java.lang.Object implements java.lang.Iterable<java.util.List<E>>
| Modifier and Type | Field and Description |
|---|---|
java.util.List<java.lang.Iterable<E>> |
comps
data structure.
|
| Constructor and Description |
|---|
CartesianProduct(java.util.List<java.lang.Iterable<E>> comps)
CartesianProduct constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator<java.util.List<E>> |
iterator()
Get an iterator over subsets.
|
public CartesianProduct(java.util.List<java.lang.Iterable<E>> comps)
comps - components of the Cartesian product.