IndexIterator
public class IndexIteratorReflecting extends java.lang.Object implements IndexIterator
Constructor | Description |
---|---|
IndexIteratorReflecting(IndexIterator iterator) |
Constructs iterator to generate reflections from iterates of
given iterator.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getD() |
|
boolean |
hasNext() |
|
static void |
main(java.lang.String[] args) |
Method to test and demonstrate class.
|
int[] |
next() |
|
void |
reset() |
|
void |
setReflecting(boolean[] doReflect) |
Indicates the indexes of the elements that are subject to reflection.
|
public IndexIteratorReflecting(IndexIterator iterator)
public int getD()
getD
in interface IndexIterator
public boolean hasNext()
hasNext
in interface IndexIterator
public void reset()
reset
in interface IndexIterator
public int[] next()
next
in interface IndexIterator
public void setReflecting(boolean[] doReflect)
java.lang.IllegalArgumentException
- if the length of the given array is not equal to the getD();public static void main(java.lang.String[] args)