# Class PermutationGenerator

java.lang.Object
com.treemap.PermutationGenerator

public class PermutationGenerator extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PermutationGenerator()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static int[]`
  `generateNextPermutation(int[] temp, int n)`
  `static int[]`
  `generateNextProduct(int[] curr, int[] max)`
  `static <T> List<List<T>>`
  `generatePermutations(List<T> list, int r)`
  `static List<List<Integer>>`
  `permutations(int n)`

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### PermutationGenerator

    public PermutationGenerator()

- ## Method Details

  - ### generatePermutations

    public static <T> List<List<T>> generatePermutations(List<T> list, int r)

  - ### permutations

    public static List<List<Integer>> permutations(int n)

  - ### generateNextProduct

    public static int[] generateNextProduct(int[] curr, int[] max)

  - ### generateNextPermutation

    public static int[] generateNextPermutation(int[] temp, int n)