IndexIteratorpublic 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 IndexIteratorpublic boolean hasNext()
hasNext in interface IndexIteratorpublic void reset()
reset in interface IndexIteratorpublic int[] next()
next in interface IndexIteratorpublic 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)