-
- 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 PermutationUnaryOperator
A functional interface for defining custom unary operators on Permutations. See thePermutation.apply(PermutationUnaryOperator)method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapply(int[] rawPermutation)Applies an operator on the raw representation of a Permutation.
-
-
-
Method Detail
-
apply
void apply(int[] rawPermutation)
Applies an operator on the raw representation of a Permutation. Implementers of this interface are responsible for ensuring that the apply method maintains a valid permutation of the integers in {0, 1, ..., rawPermutation.length - 1 }.- Parameters:
rawPermutation- 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.
-
-