|
|
|
|
8
|
* @author leon on 11/12/2018.
|
8
|
* @author leon on 11/12/2018.
|
9
|
*/
|
9
|
*/
|
10
|
public class GenericUtils {
|
10
|
public class GenericUtils {
|
11
|
- public static <_ extends Comparable> Iterable<Iterable<_>> powerSet(Set<_> originalSet) {
|
|
|
|
|
11
|
+ public static <_ extends Comparable> Iterable<? extends Iterable<_>> powerSet(Set<_> originalSet) {
|
12
|
return null;
|
12
|
return null;
|
13
|
}
|
13
|
}
|
14
|
|
14
|
|
15
|
- public static <_ extends Comparable> Iterable<Iterable<_>> powerSet(_... originalSet) {
|
|
|
|
|
15
|
+ public static <_ extends Comparable> Iterable<? extends Iterable<_>> powerSet(_... originalSet) {
|
16
|
return powerSet(new TreeSet<>(Arrays.asList(originalSet)));
|
16
|
return powerSet(new TreeSet<>(Arrays.asList(originalSet)));
|
17
|
}
|
17
|
}
|
18
|
}
|
18
|
}
|
|
|
19
|
+
|