public class MultidimensionalCounter.Iterator
extends java.lang.Object
implements java.util.Iterator<java.lang.Integer>
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() |
java.lang.Integer |
next() |
void |
remove() |
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
Copyright © 2010 - 2020 Adobe. All Rights Reserved