Package edu.jas.util

Class 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

      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • 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 interface java.lang.Iterable<java.util.List<java.lang.Long>>
        Returns:
        an iterator.