Package ucar.ma2
Class Section.Iterator
- java.lang.Object
-
- ucar.ma2.Section.Iterator
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Return true if there are more elementsint
next(int[] index)
Get the position in the equivalant 1D array of shape[]
-
-
-
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
-
-