stream List转Map

Map<String,String> itemMap = itemList.stream.collect(Collectors.toMap(Bean::getItemA,Bean::getItemB));

原文地址:https://www.cnblogs.com/wzhw2015/p/12381920.html