类 Section.Iterator
- java.lang.Object
-
- org.meteoinfo.ndarray.Section.Iterator
-
- 封闭类:
- Section
public class Section.Iterator extends java.lang.Object
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intgetResultIndex()Get the current index in the result array, ie in this sectionbooleanhasNext()Return true if there are more elementsintnext(int[] index)Get the position in the equivalant 1D array of shape[]
-
-
-
方法详细资料
-
hasNext
public boolean hasNext()
Return true if there are more elements- 返回:
- true if there are more elements
-
next
public int next(int[] index)
Get the position in the equivalant 1D array of shape[]- 参数:
index- if not null, return the current nD index- 返回:
- the current position in a 1D array
-
getResultIndex
public int getResultIndex()
Get the current index in the result array, ie in this section- 返回:
- result index
-
-