xxl.cursors
Class Permutator

java.lang.Object
  |
  +--xxl.cursors.Permutator

public class Permutator
extends java.lang.Object
implements java.util.Iterator


Field Summary
protected  int[] array
           
protected  int index
           
protected  java.util.Random random
           
 
Constructor Summary
Permutator(int n)
           
Permutator(int[] array)
           
Permutator(int[] array, java.util.Random random)
           
Permutator(int n, java.util.Random random)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

array

protected int[] array

index

protected int index

random

protected java.util.Random random
Constructor Detail

Permutator

public Permutator(int[] array,
                  java.util.Random random)

Permutator

public Permutator(int[] array)

Permutator

public Permutator(int n,
                  java.util.Random random)

Permutator

public Permutator(int n)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
                      throws java.util.NoSuchElementException
Specified by:
next in interface java.util.Iterator

remove

public void remove()
            throws java.lang.UnsupportedOperationException
Specified by:
remove in interface java.util.Iterator