org.eclipse.viatra.cep.core.engine.compiler

## Class PermutationsHelper<T>

- java.lang.Object
- - org.eclipse.viatra.cep.core.engine.compiler.PermutationsHelper<T>

- Type Parameters:
    `T` - the type of the elements to be permutated

      public class PermutationsHelper<T>
      extends java.lang.Object

  Helper class for calculating permutations for `List`s of type T.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PermutationsHelper()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.util.List<java.util.List<T>>` | `getAll(java.util.List<T> elements)` Shorthand method for `getAll(List, int)`: fromElement==0.
    `java.util.List<java.util.List<T>>` | `getAll(java.util.List<T> elements, int fromElement)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PermutationsHelper

          public PermutationsHelper()

  - ### Method Detail

    - #### getAll

          public java.util.List<java.util.List<T>> getAll(java.util.List<T> elements,
                                                          int fromElement)

      Parameters:
        `elements` - the elements to be permutated
        `fromElement` - the fist element of the list the permutation should be calculated from (i.e. the prefix)
      Returns:
        a `List` of permutations, i.e. a `List` of `List`s

    - #### getAll

          public java.util.List<java.util.List<T>> getAll(java.util.List<T> elements)

      Shorthand method for `getAll(List, int)`: fromElement==0.
      Parameters:
        `elements` - the elements to be permutated
      Returns:
        a `List` of permutations, i.e. a `List` of `List`s