Map<String,Bean> map = list.stream().toMap(bean -> bean.getItemA(),bean->bean));

相关文章: