Package org.aksw.limes.core.util
Class SetUtilities
- java.lang.Object
-
- org.aksw.limes.core.util.SetUtilities
-
public class SetUtilities extends Object
Class to help creating sets.- Author:
- Klaus Lyko
-
-
Constructor Summary
Constructors Constructor Description SetUtilities()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> Set<Set<T>>sizeRestrictPowerSet(Set<T> originalSet, int size)Generates all possible sets of elements T of the given size.voidtestsizeRestrictPowerSet()
-
-
-
Method Detail
-
sizeRestrictPowerSet
public static <T> Set<Set<T>> sizeRestrictPowerSet(Set<T> originalSet, int size)
Generates all possible sets of elements T of the given size.- Parameters:
originalSet- Set of elements to generate powerset upon.size- Size the generated sets should have.- Returns:
- All possible sets of elements T of size size.
-
testsizeRestrictPowerSet
public void testsizeRestrictPowerSet()
-
-