public abstract class PowerSetSupplier extends java.lang.Object implements IntArraySupplier
Modifier and Type | Class and Description |
---|---|
static class |
PowerSetSupplier.BigInt |
static class |
PowerSetSupplier.Long |
Modifier and Type | Field and Description |
---|---|
protected int[] |
binaryCounter |
protected int[] |
currentPowerSet |
protected int |
length |
Constructor and Description |
---|
PowerSetSupplier(int length) |
Modifier and Type | Method and Description |
---|---|
void |
computeNext()
Computes the value to be supplied next, using the currently supplied value.
|
int[] |
getCurrentSequence() |
int[] |
getNextSequence(boolean useNext)
Retrieves the next value to be supplied.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
unrank
protected final int length
protected int[] currentPowerSet
protected final int[] binaryCounter
public int[] getCurrentSequence()
getCurrentSequence
in interface IntArraySupplier
public void computeNext()
IntArraySupplier
IntArraySupplier.getCurrentSequence()
should return this newly computed value.computeNext
in interface IntArraySupplier
public int[] getNextSequence(boolean useNext)
IntArraySupplier
IntArraySupplier.getCurrentSequence()
will return an equal (but not identical) value.getNextSequence
in interface IntArraySupplier
useNext
- true, if the next value can be computed based on the current one;IntArraySupplier.getCurrentSequence()
.