list.stream().collect(Collectors.toMap(AAA::getDataDate, AAA::getResult, (oldKey, newKey)->newKey));

 

java stream map对于 key重复的处理方式,上述代码表示,重复的话,取信值

相关文章:

  • 2021-10-02
  • 2022-12-23
  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2023-03-22
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案