public class BooleanIterator extends IndexIterator
index| Constructor and Description |
|---|
BooleanIterator(IndexIterator iter,
Dataset selection)
Constructor for an iterator over the items of a boolean dataset that are
true
|
BooleanIterator(IndexIterator iter,
Dataset selection,
boolean value)
Constructor for an iterator over the items of a boolean dataset that match
given value
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
getPos() |
boolean |
hasNext() |
void |
reset()
Reset iterator
|
getShapepublic BooleanIterator(IndexIterator iter, Dataset selection)
iter - dataset iteratorselection - boolean datasetpublic BooleanIterator(IndexIterator iter, Dataset selection, boolean value)
iter - dataset iteratorselection - boolean datasetvalue - public boolean hasNext()
hasNext in class IndexIteratorpublic int[] getPos()
getPos in class IndexIteratorpublic void reset()
IndexIteratorreset in class IndexIteratorCopyright © 2017. All rights reserved.