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
|
getShape
public 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 IndexIterator
public int[] getPos()
getPos
in class IndexIterator
public void reset()
IndexIterator
reset
in class IndexIterator
Copyright © 2017. All rights reserved.