public static class CombinationSupplier.Long extends CombinationSupplier implements Splittable.LongIndexed<int[]>
CombinationSupplier.BigInt, CombinationSupplier.Long
Splittable.BigIntegerIndexed<T>, Splittable.LongIndexed<T>
currentCombination, k, n
IDENTITY
Constructor and Description |
---|
Long(long count,
int n,
int k) |
Modifier and Type | Method and Description |
---|---|
int[] |
apply(long index) |
CombinationSupplier.Long |
split()
Splits this instance.
|
int[] |
unrank() |
computeNext, getCurrentSequence
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNextSequence
public CombinationSupplier.Long split()
Splittable
split
in interface Splittable<Splittable.LongIndexed<int[]>>
public int[] apply(long index)
apply
in interface java.util.function.LongFunction<int[]>
public int[] unrank()
unrank
in interface IntArraySupplier