|
|||||||||
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(java.lang.Object[] source)
Creates a new PermutationIterator for the given source array using all elements of the array. |
|
PermutationIterator(java.lang.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(java.lang.String[] args)
|
java.lang.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(java.lang.Object[] source)
public PermutationIterator(java.lang.Object[] source, int permSize)
Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |