摘要: 常用方式 代码如下: public Map<Long, String> getIdNameMap(List<Account> accounts) { return accounts.stream().collect(Collectors.toMap(Account::getId, Account:: 阅读全文
posted @ 2016-12-05 14:40 系统攻城狮 阅读(144002) 评论(3) 推荐(9) 编辑