|
@@ -1,16 +1,13 @@
|
1
|
1
|
package rocks.zipcode.io.quiz4.generics;
|
2
|
2
|
|
3
|
|
-import java.util.Arrays;
|
4
|
|
-import java.util.Set;
|
5
|
|
-import java.util.TreeSet;
|
|
3
|
+import java.util.*;
|
6
|
4
|
|
7
|
5
|
/**
|
8
|
6
|
* @author leon on 11/12/2018.
|
9
|
7
|
*/
|
10
|
8
|
public class GenericUtils {
|
11
|
9
|
public static <_ extends Comparable> Iterable<? extends Iterable<_>> powerSet(Set<_> originalSet) {
|
12
|
|
-
|
13
|
|
- return null;
|
|
10
|
+ return new ArrayList<>();
|
14
|
11
|
}
|
15
|
12
|
|
16
|
13
|
public static <_ extends Comparable> Iterable<? extends Iterable<_>> powerSet(_... originalSet) {
|