public class TestHashCodeImpl implements TestHashCode { public static Set<String> bizTypeSet; @Override public void bizTypeRefresh() { Set<String> tempSet = new HashSet<String>(); List<Student> list = repository.findAll(); if (!CollectionUtil.isEmpty(list)) { for (Student stu : list) { tempSet.add(stu.getName); } } bizTypeSet = tempSet;
}
}