Class MultidimensionalCounter.Iterator

    • Method Detail

      • getCount

        public int getCount()
        Get the current unidimensional counter slot.
        Returns:
        the index within the unidimensionl counter.
      • getCounts

        public int[] getCounts()
        Get the current multidimensional counter slots.
        Returns:
        the indices within the multidimensional counter.
      • getCount

        public int getCount​(int dim)
        Get the current count in the selected dimension.
        Parameters:
        dim - Dimension index.
        Returns:
        the count at the corresponding index for the current state of the iterator.
        Throws:
        IndexOutOfBoundsException - if index is not in the correct interval (as defined by the length of the argument in the constructor of the enclosing class).