本人内容转载自 https://blog.csdn.net/stevenxyy/article/details/106868641 学习记录使用
Map<String,List<ArtifactoryEntity>> partsMap = aelist.stream().collect(Collectors.toMap(ArtifactoryEntity::getRepoKey, part ->
Lists.newArrayList(part),(List<ArtifactoryEntity> newValueList, List<ArtifactoryEntity> oldValueList)->
{oldValueList.addAll(newValueList);
return oldValueList;
}));