swarm.collections
Interface PermutationC
- All Known Implementing Classes:
- PermutationCImpl
- public interface PermutationC
- extends CollectionC, CollectionS, CreateC, CreateS, ArrayC, ArrayS
A class that represents a permutation of elements of a collection.
Permutation is used to generate a permutation of elements of a a collection and store them in an array for fast access. Permutation only mirrors the original collection. Updates of contents of Permutation will not reflect on the original collection.
setCollection
public java.lang.Object setCollection(Collection collection)
setLastPermutation
public java.lang.Object setLastPermutation(Permutation permutation)
setUniformRandom
public java.lang.Object setUniformRandom(java.lang.Object rnd)