| Modifier and Type | Field and Description |
|---|---|
private int |
count
Unidimensional counter.
|
private int[] |
counter
Multidimensional counter.
|
| Constructor and Description |
|---|
MultidimensionalCounter.Iterator()
Create an iterator
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCount()
Get the current unidimensional counter slot.
|
int |
getCount(int dim)
Get the current count in the selected dimension.
|
int[] |
getCounts()
Get the current multidimensional counter slots.
|
boolean |
hasNext() |
Integer |
next() |
void |
remove() |
private final int[] counter
private int count
MultidimensionalCounter.Iterator()
MultidimensionalCounter.iterator()public Integer next()
public int getCount()
public int[] getCounts()
public int getCount(int dim)
dim - Dimension index.IndexOutOfBoundsException - if index is not in the
correct interval (as defined by the length of the argument in the
constructor of the enclosing class).public void remove()
remove in interface Iterator<Integer>UnsupportedOperationExceptionCopyright (c) 2003-2014 Apache Software Foundation