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
Method Summary |
java.util.Iterator<java.util.List<java.lang.Long>> |
iterator()
Get an iterator over subsets. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
comps
public final java.util.List<LongIterable> comps
- data structure.
upperBound
public final long upperBound
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.
iterator
public java.util.Iterator<java.util.List<java.lang.Long>> iterator()
- Get an iterator over subsets.
- Specified by:
iterator
in interface java.lang.Iterable<java.util.List<java.lang.Long>>
- Returns:
- an iterator.