public abstract class CombinationSupplier extends java.lang.Object implements IntArraySupplier
Modifier and Type | Class and Description |
---|---|
static class |
CombinationSupplier.BigInt |
static class |
CombinationSupplier.Long |
Modifier and Type | Field and Description |
---|---|
protected int[] |
currentCombination |
protected int |
k |
protected int |
n |
Modifier and Type | Method and Description |
---|---|
void |
computeNext()
Computes the value to be supplied next, using the currently supplied value.
|
int[] |
getCurrentSequence() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNextSequence, unrank
protected final int n
protected final int k
protected final int[] currentCombination
public int[] getCurrentSequence()
getCurrentSequence
in interface IntArraySupplier
public void computeNext()
IntArraySupplier
IntArraySupplier.getCurrentSequence()
should return this newly computed value.computeNext
in interface IntArraySupplier