public class IntegersIterator extends IndexIterator
index| Constructor and Description |
|---|
IntegersIterator(boolean restrict1D,
int[] shape,
Object... index)
Constructor for an iterator over the items of an array of objects
|
IntegersIterator(int[] shape,
Object... index)
Constructor for an iterator over the items of an array of objects
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
getPos() |
int[] |
getShape() |
boolean |
hasNext() |
void |
reset()
Reset iterator
|
public IntegersIterator(int[] shape, Object... index)
shape - of entire data arrayindex - an array of integer dataset, boolean dataset, slices or null entries (same as full slices)public IntegersIterator(boolean restrict1D, int[] shape, Object... index)
restrict1D - if true, allow only one 1D integer datasets otherwise they must match shapeshape - of entire data arrayindex - an array of integer dataset, boolean dataset, slices or null entries (same as full slices)public int[] getShape()
getShape in class IndexIteratorpublic boolean hasNext()
hasNext in class IndexIteratorpublic int[] getPos()
getPos in class IndexIteratorpublic void reset()
IndexIteratorreset in class IndexIteratorCopyright © 2014–2022 Eclipse Foundation. All rights reserved.