org.teiid.query.util
Class Permutation
java.lang.Object
org.teiid.query.util.Permutation
public class Permutation
- extends Object
Method Summary |
Iterator<Object[]> |
generate()
Create list of arrays of items, in all possible permutations (that's n! permutations). |
Iterator<Object[]> |
generate(int size)
Create list of arrays of items, in all possible permutations (that's n! permutations). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Permutation
public Permutation(Object[] items)
generate
public Iterator<Object[]> generate()
- Create list of arrays of items, in all possible permutations (that's n! permutations).
- Returns:
- Iterator where each thing returned by the iterator is a permutation Object[]
generate
public Iterator<Object[]> generate(int size)
- Create list of arrays of items, in all possible permutations (that's n! permutations).
- Returns:
- Iterator where each thing returned by the iterator is a permutation Object[] of
length size
Copyright © 2012. All Rights Reserved.