set list 最有效率的通用遍历方法
Set<Department> departments = new LinkedHashSet<Department>();
//或者
List<Department> departments = new ArrayList<Department>();
for (Iterator it = departments.iterator(); it.hasNext();) {
Department department = (Department) it.next();
if (StringUtils.isBlank(department.getName())) {
it.remove();
}
}