apply
void apply(int[] rawPermutation1,
int[] rawPermutation2)
Applies an operator on the raw representations of
a pair of Permutations. Implementers of this interface are responsible
for ensuring that the apply method maintains valid
permutations of the integers in {0, 1, ..., rawPermutation1.length - 1 },
and likewise for rawPermutation2.
- Parameters:
rawPermutation1 - A reference to the raw array of ints underlying a
Permutation object. Changes to this array will directly change the Permutation
object that encapsulates it.
rawPermutation2 - A reference to the raw array of ints underlying a
Permutation object. Changes to this array will directly change the Permutation
object that encapsulates it.