会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
系统攻城狮
设计模式——代码之美
博客园
首页
新随笔
联系
管理
2016年12月5日
使用java8的lambda将list转为map(转)
摘要: 常用方式 代码如下: public Map<Long, String> getIdNameMap(List<Account> accounts) { return accounts.stream().collect(Collectors.toMap(Account::getId, Account::
阅读全文
posted @ 2016-12-05 14:40 系统攻城狮
阅读(145076)
评论(3)
推荐(9)
公告