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