最佳答案
有没有办法复制一个 TreeSet
? 就是说,有没有可能去
Set <Item> itemList;
Set <Item> tempList;
tempList = itemList;
或者您必须在物理上迭代这些集合并逐个复制它们?