Constructor and Description |
---|
DataIterator(HasID[][][] data,
int startingZ,
int limitZ) |
Modifier and Type | Method and Description |
---|---|
int[] |
getCurrentIndex()
get the indices position of the iterator
|
boolean |
hasNext() |
HasID |
next() |
void |
remove() |
void |
setBorders(int left,
int right,
int back,
int front)
sets index position borders during iterations.
|
void |
setTopLimitZ(int zLimit)
set the top/last limit of the iteration (including).
|
public DataIterator(HasID[][][] data, int startingZ, int limitZ)
data
- startingZ
- the starting layerlimitZ
- the last layerpublic void setTopLimitZ(int zLimit)
zLimit
- public boolean hasNext()
hasNext
in interface java.util.Iterator<HasID>
public void remove()
remove
in interface java.util.Iterator<HasID>
public int[] getCurrentIndex()
public void setBorders(int left, int right, int back, int front)
left
- right
- back
- front
-