|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.egothor.duplicity.util.Permutations
public class Permutations
Creates random permutations. The length of permutation is determined during the class instantiation.
Constructor Summary | |
---|---|
Permutations(int length)
Creates instance with random seed. |
|
Permutations(int length,
long seed)
Creates instance with given seed. |
Method Summary | |
---|---|
int |
getLength()
|
long |
getSeed()
|
Permutation |
randomPermutation()
Generates random permutation of integers [0 .. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Permutations(int length)
length
- length of permutations to be created by this instancepublic Permutations(int length, long seed)
length
- length of permutations to be created by this instanceseed
- seed to be usedMethod Detail |
---|
public int getLength()
public long getSeed()
public Permutation randomPermutation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |