private List<Solution> copyList(SolutionSet population) { List<Solution> copySolutions = new ArrayList<Solution>(); Iterator<Solution> iterator = population.iterator(); while (iterator.hasNext()) { Solution solution = (Solution) iterator.next(); copySolutions.add(solution); } return copySolutions; }