首页 > 其他分享 >removeDuplicates

removeDuplicates

时间:2022-11-04 19:03:54浏览次数:41  
标签:return List ArrayList list removeDuplicatesprotected new removeDuplicates

protected final <T> List<T> removeDuplicates(List<T> list) {

return new ArrayList<T>(new LinkedHashSet<T>(list));

}

标签:return,List,ArrayList,list,removeDuplicatesprotected,new,removeDuplicates
From: https://blog.51cto.com/u_10028442/5824688

相关文章