org.apache.ctakes.dictionary.lookup.algorithms
Class PermutationUtil

java.lang.Object
  extended by org.apache.ctakes.dictionary.lookup.algorithms.PermutationUtil

public class PermutationUtil
extends Object

Author:
Mayo Clinic

Constructor Summary
PermutationUtil()
           
 
Method Summary
static Collection<List<Integer>> getLinearPermutations(List<Integer> numList)
          Gets a collection of lists, each list represents a single permutation.
static List<List<Integer>> getPermutationList(int maxLevel)
          Gets all permutations for the given level and all sub-levels.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermutationUtil

public PermutationUtil()
Method Detail

getPermutationList

public static List<List<Integer>> getPermutationList(int maxLevel)
Gets all permutations for the given level and all sub-levels.

Parameters:
maxLevel - -

getLinearPermutations

public static Collection<List<Integer>> getLinearPermutations(List<Integer> numList)
Gets a collection of lists, each list represents a single permutation. This permutation is composed of Integer objects in defined order.

Parameters:
numList - -
Returns:
-


Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.