private static class IndexValues.Iter
extends java.lang.Object
implements java.util.Iterator<int[]>
Modifier and Type | Field and Description |
---|---|
private int[] |
curr
Contains the next combination of array index values to be returned;
null if the iterator has exhausted all possible index values.
|
private int[] |
lengths |
Modifier | Constructor and Description |
---|---|
private |
Iter(int[] lengths) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
int[] |
next()
Returns the next combination of array index values, or null if
the index value space has been exhausted.
|
void |
remove() |
private final int[] lengths
private int[] curr
public boolean hasNext()
hasNext
in interface java.util.Iterator<int[]>
public int[] next()
next
in interface java.util.Iterator<int[]>
public void remove()
remove
in interface java.util.Iterator<int[]>