Package ucar.array

Class Section.Iterator

  • Enclosing class:
    Section

    public class Section.Iterator
    extends Object
    • Method Detail

      • hasNext

        public boolean hasNext()
        Return true if there are more elements
      • next

        public int next​(int[] index)
        Get the position in the equivalant 1D array of shape[]
        Parameters:
        index - if not null, return the current nD index
        Returns:
        the current position in a 1D array