Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.kemet.impl.grammar.toolbox
Class Combinatorial

    java.lang.Object
      org.kemet.impl.grammar.toolbox.Combinatorial

    public class Combinatorial

extends java.lang.Object

Since:
  0.2
Author:
  fabricemaupin

  generate all combinations and permutations from a caracters list.

Constructor Summary
`Combinatorial()`

Method Summary
`static java.util.Enumeration` | `allCombinations(java.lang.String listOfElements, int elementsNumberInCombination)` generate all combinations (listOfElements * elementsNumberInCombination).
`static java.util.Enumeration` | `allPermutations(java.lang.String str)` generate all permutations.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Combinatorial

    public Combinatorial()

Method Detail

### allCombinations

    public static java.util.Enumeration allCombinations(java.lang.String listOfElements,
                                                        int elementsNumberInCombination)

  generate all combinations (listOfElements * elementsNumberInCombination).

  Parameters:
    `listOfElements` - list of elements to treat
    `elementsNumberInCombination` - elements number in combination
  Returns:
    list of combinations
  Since:
    0.2

### allPermutations

    public static java.util.Enumeration allPermutations(java.lang.String str)

  generate all permutations.

  Parameters:
    `str` - string used for permutations
  Returns:
    all permutations
  Since:
    0.2

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008 F. MAUPIN. All Rights Reserved.