Map<String,String> persons = new HashMap<>();
persons.put("aaaa@testing","123456789");
persons.put("bbbb@testing","987654321");
Map<String,UsersDTO> users = new HashMap<>();
users.put("aaaa@testing", UsersDTO1);
users.put("bbbb@testing",UsersDTO2);
//Below one is the my required final map by using above two maps by using java 8 Lambdas
Map<String,UsersDTO> finalMap = new HashMap<>();
finalMap.put("123456789",UsersDTO1);
finalMap.put("987654321",UsersDTO2);
如何finalMap利用上面两张图来制作呢?可能存在此类问题,但我想特别关注这一点,所以这就是我发布它的原因。如何使用 lambda 表达式进行生成?
神不在的星期二
慕斯709654
相关分类