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
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
array
protected int[] array
index
protected int index
random
protected java.util.Random random
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)
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