在 Java 中,我无法从 a 转换Set<Set<String>>
为 a List<List<String>>
,然后用Set<Set<String>>
这是我的代码:
Set<Set<String>> treeComps = compExtractor.transform(forest); // fine
List<List<String>> components = new List<List<String>>(); // does not work
components.addAll(treeComps); // does not work