Package edu.jas.util
Class CartesianProductLong
- java.lang.Object
-
- edu.jas.util.CartesianProductLong
-
- All Implemented Interfaces:
java.lang.Iterable<java.util.List<java.lang.Long>>
public class CartesianProductLong extends java.lang.Object implements java.lang.Iterable<java.util.List<java.lang.Long>>
Cartesian product for Long with iterator. Similar to CartesianProduct but returns only tuples of given total degree.- Author:
- Heinz Kredel
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<LongIterable>
comps
data structure.long
upperBound
-
Constructor Summary
Constructors Constructor Description CartesianProductLong(java.util.List<LongIterable> comps, long ub)
CartesianProduct constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<java.util.List<java.lang.Long>>
iterator()
Get an iterator over subsets.
-
-
-
Field Detail
-
comps
public final java.util.List<LongIterable> comps
data structure.
-
upperBound
public final long upperBound
-
-
Constructor Detail
-
CartesianProductLong
public CartesianProductLong(java.util.List<LongIterable> comps, long ub)
CartesianProduct constructor.- Parameters:
comps
- components of the Cartesian product.ub
- an upper bound for the total degree of the elements.
-
-
Method Detail
-
iterator
public java.util.Iterator<java.util.List<java.lang.Long>> iterator()
Get an iterator over subsets.- Specified by:
iterator
in interfacejava.lang.Iterable<java.util.List<java.lang.Long>>
- Returns:
- an iterator.
-
-