Interface PermutationBinaryOperator

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface PermutationBinaryOperator
A functional interface for defining custom binary operators on Permutations. See the Permutation.apply(PermutationBinaryOperator,Permutation) method.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(int[] rawPermutation1, int[] rawPermutation2)
    Applies an operator on the raw representations of a pair of Permutations.
  • Method Details

    • 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.