|
@@ -17,11 +17,12 @@ public class GenericUtils {
|
17
|
17
|
|
18
|
18
|
for (int i = 0; i < originalSet.size(); i++) {
|
19
|
19
|
for (int j = originalSet.size() -1; j >= 0 ; j--) {
|
20
|
|
- Set<_> sortedGroup = new HashSet<>();
|
21
|
|
- sortedGroup.add(genericList.get(j));
|
|
20
|
+ ArrayList<_> sortedGroup = new ArrayList<>();
|
22
|
21
|
sortedGroup.add(genericList.get(i));
|
23
|
22
|
|
24
|
|
- treeSet.insert(sortedGroup);
|
|
23
|
+ if (!treeSet.has(sortedGroup)) {
|
|
24
|
+ treeSet.insert(sortedGroup);
|
|
25
|
+ }
|
25
|
26
|
}
|
26
|
27
|
}
|
27
|
28
|
treeSet.insert(new ComparableTreeSet<>());
|