Page<PerfTest> tests = perfTestService.getPagedAll(user, query, tag, queryFilter, pageable);
List<PerfTest> newList = new ArrayList<PerfTest>();
Map mp = new HashMap();
for (PerfTest test:tests.getContent()) {
String name =test.getTestName();
if(mp.get(name)==null){
mp.put(name,test);
newList.add(test);
}
}
【java】list去重
最新推荐文章于 2022-12-26 16:43:50 发布