Created
December 18, 2019 07:02
-
-
Save HoweChen/684ad691438a020c766ddb199c1ea951 to your computer and use it in GitHub Desktop.
[转换Map里的所有key变为大写]#Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Map<String, List<Long>> capitalKeyToValueMap = procDefInfoDto.getPermissionToRole() | |
.entrySet() | |
.stream() | |
.collect(Collectors.toMap(stringListEntry -> stringListEntry.getKey().toUpperCase(), Map.Entry::getValue)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment