| java.lang.Object org.h2.util.Permutations
Permutations | public class Permutations (Code) | | A class to iterate over all permutations of an array.
The algorithm is from Applied Combinatorics, by Alan Tucker as implemented in
http://www.koders.com/java/fidD3445CD11B1DC687F6B8911075E7F01E23171553.aspx
|
Method Summary | |
public boolean | next() Go to the next lineup, and if available, fill the target array. |
Permutations | public Permutations(Object[] in, Object[] out)(Code) | | Create a new permutations object.
Parameters: in - the source array Parameters: out - the target array |
Permutations | public Permutations(Object[] in, Object[] out, int m)(Code) | | Create a new permutations object.
Parameters: in - the source array Parameters: out - the target array Parameters: m - the number of output elements to generate |
next | public boolean next()(Code) | | Go to the next lineup, and if available, fill the target array.
if a new lineup is available |
|
|