??? /**
???? * 删除ArrayList中重复元素,并保持顺序
???? * @param list
???? * @return
???? */
?private List<JobInfo> removeDuplicate(List<JobInfo> list) {
??????? Set<JobInfo> set = new HashSet<JobInfo>();
??????? List<JobInfo> newList = new ArrayList<JobInfo>();
???????? for (Iterator<JobInfo> iter = list.iterator(); iter.hasNext();) {
??????? ? JobInfo element = (JobInfo) iter.next();
???????????? if (set.add(element))
??????????????? newList.add(element);
??????? }
??????? return newList;
??? }