|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectariba.util.core.PermutationIterator
public class PermutationIterator
A PermutationIterator produces a series of permutations of the requested size from a source array of objects.
| Constructor Summary | |
|---|---|
PermutationIterator(Object[] source)
Creates a new PermutationIterator for the given source array using all elements of the array. |
|
PermutationIterator(Object[] source,
int permSize)
Creates a new PermutationIterator for the given source array where each permutation will be of the given permSize. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns true if the PermutationIterator has more elements. |
static void |
main(String[] args)
|
Object |
next()
Returns the next element of this PermutationIterator as an array of Objects. |
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PermutationIterator(Object[] source)
public PermutationIterator(Object[] source,
int permSize)
| Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iteratorpublic Object next()
next in interface Iteratorpublic void remove()
remove in interface Iteratorpublic static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||