IteratorType
- Type of iterator given by the implementing subclassClassType
- Type of parameter returned by the next() method.protected abstract static class Combinations.AbstractCombinationsIterator<IteratorType extends Combinations.AbstractCombinationsIterator<IteratorType,ClassType>,ClassType> extends AbstractCloneableSerializable implements java.util.Iterator<ClassType>
Modifier and Type | Field and Description |
---|---|
protected IteratorType |
child
Child iterator for recursion
|
protected int |
index
Index into the universal set.
|
protected int |
k
Number of objects to choose from the universe set.
|
protected int |
N
Universe set size
|
protected int |
size |
Constructor and Description |
---|
AbstractCombinationsIterator(int N,
int k)
Creates a new instance of AbstractCombinationsIterator
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
void |
remove() |
clone
protected int N
protected int k
protected int size
protected int index
protected IteratorType extends Combinations.AbstractCombinationsIterator<IteratorType,ClassType> child