Map<ParamsDict,Long> map = dicts. stream(). collect(Collectors.groupingBy(p -> p,Collectors.counting()));
Iterator<Map.Entry<ParamsDict,Long>> Iterator=map. entrySet(). Iterator();
while(Iterator.hasNext()){
if(Iterator.next(). getValue() >1){
throw new 自定义异常
}
}