T
- the element typepublic class Permutations<T> extends Object
Modifier and Type | Method and Description |
---|---|
static <T> Permutations<T> |
create(T[] in,
T[] out)
Create a new permutations object.
|
static <T> Permutations<T> |
create(T[] in,
T[] out,
int m)
Create a new permutations object.
|
boolean |
next()
Go to the next lineup, and if available, fill the target array.
|
public static <T> Permutations<T> create(T[] in, T[] out)
T
- the typein
- the source arrayout
- the target arraypublic static <T> Permutations<T> create(T[] in, T[] out, int m)
T
- the typein
- the source arrayout
- the target arraym
- the number of output elements to generatepublic boolean next()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.