Package ucar.ma2

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
        Returns:
        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