java.lang.Object | |
↳ | com.pnfsoftware.jeb.util.base.Tuples |
Integer tuples generator routines.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Tuples() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static List<List<Integer>> |
generateIntegerTuples(int n)
Generate all tuples containing the numbers 0 to n-1.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Generate all tuples containing the numbers 0 to n-1. Be careful, n! tuples will be generated.
For instance, for n=3, the tuples are:
(0,1,2), (0,2,1), (1,0,2), (1,2,0), (2,0,1), (2,1,0)
n | the tuple size |
---|