public class SetUtilities extends Object
| Constructor and Description |
|---|
SetUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Set<Set<T>> |
sizeRestrictPowerSet(Set<T> originalSet,
int size)
Generates all possible sets of elements T of the given size.
|
void |
testsizeRestrictPowerSet() |
public static <T> Set<Set<T>> sizeRestrictPowerSet(Set<T> originalSet, int size)
originalSet - Set of elements to generate powerset upon.size - Size the generated sets should have.public void testsizeRestrictPowerSet()
Copyright © 2020. All rights reserved.