|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.commons.math.util.MultidimensionalCounter.Iterator
public class MultidimensionalCounter.Iterator
Perform iteration over the multidimensional counter.
| Field Summary | |
|---|---|
private int |
count
Unidimensional counter. |
private int[] |
counter
Multidimensional counter. |
| Constructor Summary | |
|---|---|
MultidimensionalCounter.Iterator()
Create an iterator |
|
| Method Summary | |
|---|---|
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()
|
java.lang.Integer |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final int[] counter
private int count
| Constructor Detail |
|---|
MultidimensionalCounter.Iterator()
MultidimensionalCounter.iterator()| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iterator<java.lang.Integer>public java.lang.Integer next()
next in interface java.util.Iterator<java.lang.Integer>1.public int getCount()
public int[] getCounts()
public int getCount(int dim)
dim - Dimension index.
java.lang.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 java.util.Iterator<java.lang.Integer>java.lang.UnsupportedOperationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||