public class Combinations extends StreamableProxy<int[],Combinations>
Streamable
providing streams of combinations.
LongCombinations
or BigIntegerCombinations
, depending on the values of n
and k
.Modifier and Type | Field and Description |
---|---|
static int |
MAX_N |
Constructor and Description |
---|
Combinations(int n,
int k)
k -combinations from a set of n elements |
Modifier and Type | Method and Description |
---|---|
protected Streamable<int[],?> |
getDelegate() |
bigCount, count, parallelStream, shuffle, skip, skip, stream, withAdditionalCharacteristics
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ordered, shuffle
public static final int MAX_N
public Combinations(int n, int k)
k
-combinations from a set of n
elementsprotected Streamable<int[],?> getDelegate()
getDelegate
in class StreamableProxy<int[],Combinations>